referencing a picture in vba

C

Candace

I have the following code that can be used to make a shape invisible:

ActivePresentation.Slides(2).Shapes(3).Visible = False

How can I alter this code to make a picture invisible?
 
D

David M. Marcovitz

I have the following code that can be used to make a shape invisible:

ActivePresentation.Slides(2).Shapes(3).Visible = False

How can I alter this code to make a picture invisible?

That code will work just fine if the picture is Shape 3 on Slide 2.
Pictures are just a special type of shape and are part of the .Shapes
collection on a slide. The trick is knowing whether or not the pciture is
shape 3.

--David
 
C

Candace

Hi David,

I'm reading your book right now! I'm using it to create my first
presentation that includes VBA. You've made some of the things I've always
wanted to do with PP so simple to understand. Thanks!!!!!
 
D

David M. Marcovitz

Thank you so much. I'm glad to hear it.
--David

Hi David,

I'm reading your book right now! I'm using it to create my first
presentation that includes VBA. You've made some of the things I've
always wanted to do with PP so simple to understand. Thanks!!!!!
 

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