Hi Tom,
I'm writing an Addin for Word, Excel, and PowerPoint (different Addins)
usign VC++ and ATL. I want to programmatically insert an embedded object on
the OpenDocument event. I have not been able to figure out the function
call or technique to do so.
I think it's different for the different applications. For Word and Excel, I
suggest you record the steps in a macro in order to find out what the basic
syntax should be. In Word, it will be some form of the Add method for the
Shapes or Inlineshapes collection. But which of the various possibilities will
depend on what KIND of object you're trying to insert.
For Powerpoint, ask in the public.powerpoint group. And do tell them
- version of Powerpoint
- type of object (I'd also copy/paste the Word macro recorder code to give
them an idea of the Class that's involved)
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail