Control works in template, but not in presentation.

G

Goody

I have added a control to the Frames pop-up menu, and assigned a macro using
the code shown below:

Sub addSlideTwo()
Set myControl = CommandBars("Frames").Controls _
.Add(Type:=msoControlButton, Before:=1) ' Add new control at start
of Frames menu.
With myControl
.Caption = "Select Second Slide" ' Define caption.
.OnAction = "SecondSlide" ' Identify macro to run.
End With
End Sub

The control works fine on the template (.pot), but not in a new
presentation, even though all of the macros are contained in the presentation.

I have tried using the module name in front of the macro name, but there was
no change.

What am I missing?
 
G

Goody

Here's some new information. Even though the control is listed on the pop-up
menu when I right click a slide in the new presentation, the control does
nothing when clicked. I discovered that if I run the addSlideTwo macro once
the presentation is open, the control functions as intended. Is there a way
to automate this?
 

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