ingrid makkinje
2009-07-01 11:32:01 UTC
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
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