Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / April 2008

Tip: Looking for answers? Try searching our database.

referencing a picture in vba

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Candace - 24 Apr 2008 15:41 GMT
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?
David M. Marcovitz - 24 Apr 2008 15:48 GMT
> 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
Steve Rindsberg - 25 Apr 2008 16:22 GMT
> 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
================================================

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.