Loading add-in problem

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

Guest

Hello,

I'm running ppt2003. And I'm trying to get my add-in to show up on my menu
bar.
I'm trying to follow this procedure from MS: "How to create a PowerPoint
add-in in PowerPoint 2000" found at http://support.microsoft.com/kb/q222737/

Here is my Auto_Open routine:
Sub Auto_Open()
Dim NewControl As CommandBarControl
Dim ToolsMenu As CommandBars
Set ToolsMenu = Application.CommandBars
Set NewControl = ToolsMenu("Tools").Controls.Add _
(Type:=msoControlButton, _
Before:=1)

NewControl.Caption = "Word with TOC"
NewControl.OnAction = "ShowForm"

MsgBox "Auto_Open function ran"

End Sub

I thin follow all the steps to load the add-in, changing the macro security
settings etc. I close ppt and start it again, but I don't see my macro
listed under the "Tools" menu.

You'll notice I added a msgbox to the routine thinking it would alert me as
to when the Auto_Run routine fired, but it doesn't come up. Any ideas??

Thanks in advance.
Alan
 
What exact steps did you follow when loading the macro?
Have you tried restarting PPT after setting security to low and leaving it
there?
 
I set macro security to low
Closed ppt
Restart ppt
Go to Tools, Add-ins, Add new, select my .ppa file, close the add-in dialog
box
I don't see the msgbox or my macro in the tools menu so I close ppt and
restart
I still don't see evidence of the add-in or msgbox
For girns, I set my security back to medium and restart ppt. Still nothing.

Hope this detail helps.

Thanks,
Alan
 
I set macro security to low
Closed ppt
Restart ppt
Go to Tools, Add-ins, Add new, select my .ppa file, close the add-in dialog
box
I don't see the msgbox or my macro in the tools menu so I close ppt and
restart
I still don't see evidence of the add-in or msgbox
For girns, I set my security back to medium and restart ppt. Still nothing.

The code itself seems ok, works here, except that it'll add a new "Word with TOC"
item every time it runs.

I'm assuming that you've tried running it a few times in the VBA editor to confirm
that it works ok on your system?

Have you also put a check next to "Trust installed addins" in the security dialog,
trusted sources tab?
 
"Trust installed addins and templates" is checked.

When I have the ppt version of the ppa loaded in ppt and I run the program
from the editor (Alt+F11), it does run correctly.

Can I use different code to run the add=in?

Why would it work on your machine and not mine? I have successfully loaded
add-ins that others have written.

Any other ideas? BTW thanks a lot for helping me out with this.

Alan

----------------
 
"Trust installed addins and templates" is checked.

When I have the ppt version of the ppa loaded in ppt and I run the program
from the editor (Alt+F11), it does run correctly.

Can I use different code to run the add=in?

Why would it work on your machine and not mine? I have successfully loaded
add-ins that others have written.

Any other ideas? BTW thanks a lot for helping me out with this.

No problem.

How about emailing me a version of the PPT & PPT that contain no proprietary info ...
just the Auto_Open code and maybe a stub procedure for the code to run when clicked.

steve at-sign-thingie pptools dot com

Substitute the obvious punctuation, remove the spaces and wail.
 
Back
Top