Loading add-in problem

S

swordfish

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
 
S

swordfish

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
 
S

swordfish

"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

----------------
 

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