PDA

View Full Version : Shapes in ppa



Tiger Chen
07-02-2006, 10:48 PM
I would like to prepare a .ppa file to copy a shape from addin to any PPT file I want.

So I write:
Application.addins("xxx").slides(1).shapes("yyy").copy
here xxx is my file name - xxx.ppa and yyy is the name of shape.

however, it does not work after I save it into addin.

How to fix that?
If the slide would be removed after saving as Addin?

Killian
07-03-2006, 07:44 AM
When saving a PowerPoint Addin, although the slides are still there, they are no longer accessible. (there is no "Slides" collection of the "AddIns" object)

You save the shapes in a source PPT file that you reference from your addin but then you are stuck with opening and closing a source file.

A better way is to define the shape as a custom class in the addin and create an instance each time you want one.

Tiger Chen
07-03-2006, 08:45 AM
Thanks!

This is really bad. Actually I want to save a very complicated shape in the slide. You may look at another post of mine in Excel Help - Shape clock. It will be too complicated to draw the clock via class code.

Anyway, I know the answer now. Thanks again.

I think I can try to save the shape as a picture file. Every time I can insert the picture. Maybe this is a good idea.