script for loding addin

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
Im trying to make a vsscript for loding a powerpoint addin. I try to do it
the same way that I ve done it for excel but can not get it to work for ppt.
Is there a way to get it to work?
 
this is my code

Set oPPT = createobject("PowerPoint.application")
set myAdd = oPPT.addins.add("c:\test\myglobalppt.ppa")
myAdd.load = true

I have also tryed maadd.autoload = true
 
Thanks for posting the code. That's always a good idea.

Try

myAdd.Loaded = True
 
Unfortunately it still does not work. It opens and closes powerpoint but it
does not add the addin. Any other proposal? Or any other suggestion how to
get the addin to load automatically?
 
I don't use VBS so I'm not sure of the conventions, but this seems to work with an
add-in I've already got loade:

Set oPPT = createobject("PowerPoint.application")
set oAddin = oPPT.Addins("Addin_Name")
oaddin.loaded = true
oppt.visible=true

Make sure that you've got the add-in name right, of course. Load it manually, look
at what appears in the Tools, Add-ins list. That'll also tell you whether the add-in
itself has a problem loading.
 
Back
Top