Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

command button

Status
Not open for further replies.

mai19ea

Technical User
Nov 26, 2005
31
LY
how to activate command button in power point.

thanks
 
First, you could use an Action Button.
Did you make your command button using the Control Toolbox?
Also, go into VBA and check your references (Tools - References) and see if you have the lastest version (in order) Visual Basic for Applications, Microsoft PowerPoint 9.0 Object Lib, Ole Automation, Microsoft Office 9.0 Object lib, and Microsoft Forms 2.0 Object lib. If a library is missing, some of the ActiveX controls don't work.
 
thanks for the reply.

i made my command button using control toolbox.

i check the refernces and everything is there, only the version of Microsoft PowerPoint Object library and Microsoft Office Object Library are version 10.0 instead of 9.0.



many thanks
 
And you're using this code which works: (the number 1 is an example)

Private Sub CommandButton1_Click()
With SlideShowWindows(1).View
.GotoSlide 1
End With
End Sub

The only other thing I can think of, is that you created it on one machine and then ran it on another and it has different library versions. That happens to me and it drives me nuts.

Well, if it's not a busy slide, delete it and recreate it.

 
yes number 1 example i used it, the only problem is i cannot activate the command button.

many thanks

 
Please do not repeat your posts.

What do you mean you can not activate the button?

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top