VBA msocontrolbutton ID not working

  • Thread starter Thread starter Jim Gordon MVP
  • Start date Start date
J

Jim Gordon MVP

Hi

I'm having trouble with some code that works fine on Mac PowerPoint but
fails in PPT 2003.

Here's the code:
Set TempBar = CommandBars.Add(Name:="AnimateObject")
TempBar.Visible = True

Application.CommandBars("AnimateObject").Controls.Add
Type:=msoControlButton, Id:= _
2746, Before:=1
Application.CommandBars("AnimateObject").Controls.Add
Type:=msoControlButton, Id:= _
750, Before:=2

2746 should open the animation preview window
750 should display the File > Properties dialog

In Macintosh Powerpoint the button controls are added as expected. In
Windows PPT2003 I get a commandbar that is the right size for 2 buttons, but
has no buttons. The code above runs without error. It just doesn't make the
buttons.

Are different button control IDs used in PPT 2003? Anyone know the
corresponding button IDs for PPT2003?

-Jim
 
Jim,

2746 is not longer available PPT 2002 onwards. It will work in 97/2000. It
corresponded to the Slide Miniature/Animation preview in earlier versions.
 
Back
Top