VBA Q

A

Alexf

Hello, could you help me with this?

First, Slide 3 is blank.
Say that I press a button on slide 2. This triggers a picture to appear on
slide 3.
When I exit the presentation, then return to slide 3 directly, I will still
see the picture without having to click the button on slide 2. Is there any
way I can do this?
 
D

David M. Marcovitz

ActivePresentation.Slides(3).Shapes("YourShapeName").Visible = msoTrue

This will set the shape that is named YourShapeName on slide 3 to be
visible. If you exit the slideshow, the shape will still be visible.
However, if you close the presentation and don't save, the change you
made will not be kept so you might want to add:

ActivePresentation.Save

That will automatically save the change. If you want to make the shape
invisible again, just use the same line with msoFalse instead of
msoTrue.

--David
 

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