Results 1 to 3 of 3

Thread: Shapes in ppa

  1. #1

    Shapes in ppa

    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?

  2. #2
    VBAX Master Killian's Avatar
    Joined
    Nov 2004
    Location
    London
    Posts
    1,132
    Location
    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.
    K :-)

  3. #3
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •