> 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

Signature
David M. Marcovitz
Microsoft PowerPoint MVP
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
Candace - 24 Apr 2008 15:56 GMT
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!!!!!
> > I have the following code that can be used to make a shape invisible:
> >
[quoted text clipped - 8 lines]
>
> --David
David M. Marcovitz - 24 Apr 2008 17:05 GMT
Thank you so much. I'm glad to hear it.
--David
> Hi David,
>
[quoted text clipped - 15 lines]
>>
>> --David
> 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?
If you want this to work in normal view, you could use something like this:
ActiveWindow.Selection.ShapeRange.Visible = False
That should let you make any selected shape or shapes invisible.
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================