powerpoint not responding when I add command buttons

V

vt

I have made a presentation of only one slide, when pressing different command
buttons shows different pictures -using some macros. After creating it, the
presentation opens normally and seems to run normally -each button the user
presses genarates opening of the corrsponding picture. When I saved it and
opened it afterwards, it did not respond. Then I opened another presentation
and after closing it reopened the first (with the buttons) and it run
smoothly. I sent the powerpoint file to a friend but the presentation is
again "dead", it runs but is frozen and pressing the buttons has no result.

Any help?
 
V

vt

MS Office 2003
Here is the macro for one of the buttons:
-----
Private Sub CommandButton1_Click()
If OptionButton1 = True Then
Image1.Visible = True
Image2.Visible = False
Image3.Visible = False
Image4.Visible = False
Image5.Visible = False
Image6.Visible = False
Image7.Visible = False
Image8.Visible = False
Image9.Visible = False
Image10.Visible = False
Image11.Visible = False
Image12.Visible = False
Else
Image1.Visible = False
Image2.Visible = False
Image3.Visible = False
Image4.Visible = False
Image5.Visible = False
Image6.Visible = False
Image7.Visible = True
Image8.Visible = False
Image9.Visible = False
Image10.Visible = False
Image11.Visible = False
Image12.Visible = False
End If
End Sub
-----
it is just to make invisible all other pictures and make the one wanted
visible. The "if-then-else" are just to present different pictures according
to a selection of an option button.

thanks
 
J

John Wilson

Setting shapes visible true or false like this often conflicts with normal
animation. Are there animations on the slide?

You probably don't need any code at all to do what you need just triggered
entrance and exit animations this would avoid problems with using the viewer
or security settings.
http://www.pptalchemy.co.uk/powerpoint_hints_and_tips_tutorials.html#triggers
--
Amazing PPT Hints, Tips and Tutorials

http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk
 
V

vt

Thanks. Yes, I know, but I want to be able to select which pictures to show
during the presentation. And not to have the animations decided (and thus
animated as usual with entrances and exits) before.
 

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