Images from addin?

T

Tony

My situation: my add-in has a single slide as well as some code that
actually works. The add-in's single slide contains multiple shapes and
16x16 bitmaps.

Need 1: On Auto-Open, I need to copy a bitmap onto the clipboard (in
anticipation of a "pasteface" action), from the add-in's single slide.

Need 2: A commandbar-button procedure needs to copy a shape form the
add-in's single slide and paste it onto the active slide of the active
presentation.

My problem: I can't figure out how to reference the slide, the shapes, and
the bitmaps contained within the add-in. Is this possible? Or have I been
spoiled by Excel?

Tony
 
S

Steve Rindsberg

My situation: my add-in has a single slide

Let's pause there for a moment. Add-ins don't have slides in them. The
original PowerPoint presentation that contains your VBA may have slides in it
but when you save as an add-in (PPA), the slides in the PPT are not included.

That'd explain why you can't reference the slide or the shapes on it (if it
were there, which it ain't).

You could ship a small PPT file along with your addin though, and open it
windowless, grab the shapes you need from it and then close it again.
 
T

Tony

Bummer! So I have been spoiled by Excel. Excel add-ins do have worksheets
(admittedly these are not slides), and they are accessible.

I'll try your suggestion of a tag-along .ppt file. At least I won't have
multiple files to handle.

Many thanks, yet again!

Tony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top