Discussion:
Gallery buttons disappear
(too old to reply)
ingrid makkinje
2009-07-01 11:32:01 UTC
Permalink
I have a PPT template with a custom XML file to adjust the PPT ribbon. In
this ribbon I have created a gallery with VBA macros. Most of the galleries
work (some for text formatting, colorizing objects, fonts, etc), but the
macros that call a procedure that opens an other file, copies shape ranges,
make my buttons in the gallery disappear. When I reopen PPT the button in the
gallery are back.

This is the procedure that I use for copying shapes from another file:

Presentations.Open FileName:="C:\Program Files\BCGMacros\A4\A4 Graphs.ppt",
ReadOnly:=msoFalse
ActiveWindow.View.GotoSlide Index:=43
ActiveWindow.Selection.SlideRange.Shapes.SelectAll
ActiveWindow.Selection.Copy
ActiveWindow.Close
ActiveWindow.View.Paste

I hope someone can help me???
Thanks Ingrid
Jan Hyde
2009-07-01 14:52:28 UTC
Permalink
ingrid makkinje <***@discussions.microsoft.com>'s
wild thoughts were released on Wed, 1 Jul 2009 04:32:01
Post by ingrid makkinje
I have a PPT template with a custom XML file to adjust the PPT ribbon. In
this ribbon I have created a gallery with VBA macros. Most of the galleries
work (some for text formatting, colorizing objects, fonts, etc), but the
macros that call a procedure that opens an other file, copies shape ranges,
make my buttons in the gallery disappear. When I reopen PPT the button in the
gallery are back.
Presentations.Open FileName:="C:\Program Files\BCGMacros\A4\A4 Graphs.ppt",
ReadOnly:=msoFalse
ActiveWindow.View.GotoSlide Index:=43
ActiveWindow.Selection.SlideRange.Shapes.SelectAll
ActiveWindow.Selection.Copy
ActiveWindow.Close
ActiveWindow.View.Paste
I hope someone can help me???
Thanks Ingrid
to be honest this is a VB group, you'd be much better off in
VBA or powerpoint group.
--
Jan Hyde
Nobody
2009-07-02 21:45:52 UTC
Permalink
This group is for the stand alone product, VB6 or lower. For VBA, check
these groups:

news://msnews.microsoft.com/microsoft.public.office.developer.vba
news://msnews.microsoft.com/microsoft.public.outlook.program_vba
news://msnews.microsoft.com/microsoft.public.office.developer.outlook.vba
news://msnews.microsoft.com/microsoft.public.excel.programming
news://msnews.microsoft.com/microsoft.public.access.modulescoding

news://msnews.microsoft.com/microsoft.public.powerpoint

Loading...