E
Essam Salah
Dear All
I am developing a Power Point Add-in ; to insert some preformatted slides and shapes.
I have finished it as a presentation and saved it as ppa file.
I am getting an error saying that my PPA is not in the Presentations Collection
for clarity : my presentation was myAddin.ppt and saved as myAddin.ppa
when I want to insert a slide from it I used to do :
Presentations("myAddin.ppt").slides(1).copy
ActiveWindow.Presentation.Slides.Paste
and this works fine .. but after saving as PPA this code doesn't work and gives the error before.
I figured out that the ADD-in is not in the Presentations collection ;it is in the Addins Collection
But the Addin class does not provide a Presentation member or Slides Collection
So how to get a Reference for some Addin as a Presentation object ???
I checked the Docs again and found the following in the [Presentations Collection Object]
... but it didn't work with me !!
{{{
Remarks
The Presentations collection doesn't include open add-ins, which are a special kind of hidden presentation. You can, however, return a single open add-in if you know its file name. For example Presentations("oscar.ppa") will return the open add-in named "Oscar.ppa" as a Presentation object. However, it is recommended that the AddIns collection be used to return open add-ins.
}}}
Any advice or help is highly appreciated
Thanks in advance
I am developing a Power Point Add-in ; to insert some preformatted slides and shapes.
I have finished it as a presentation and saved it as ppa file.
I am getting an error saying that my PPA is not in the Presentations Collection
for clarity : my presentation was myAddin.ppt and saved as myAddin.ppa
when I want to insert a slide from it I used to do :
Presentations("myAddin.ppt").slides(1).copy
ActiveWindow.Presentation.Slides.Paste
and this works fine .. but after saving as PPA this code doesn't work and gives the error before.
I figured out that the ADD-in is not in the Presentations collection ;it is in the Addins Collection
But the Addin class does not provide a Presentation member or Slides Collection
So how to get a Reference for some Addin as a Presentation object ???
I checked the Docs again and found the following in the [Presentations Collection Object]
... but it didn't work with me !!
{{{
Remarks
The Presentations collection doesn't include open add-ins, which are a special kind of hidden presentation. You can, however, return a single open add-in if you know its file name. For example Presentations("oscar.ppa") will return the open add-in named "Oscar.ppa" as a Presentation object. However, it is recommended that the AddIns collection be used to return open add-ins.
}}}
Any advice or help is highly appreciated
Thanks in advance