Hide object on slide when printing

J

Jason Morin

Hello an TIA. I'd like to hide an object (whether it be
an autoshape, textbox, imported image) on a pre-
determined slide when printing. My code doesn't work. And
my other question is, how do I *name* my objects so I
don't have to refer to them as shape(1), shape(2), etc.
Thanks.

Sub HideObject()
With Application.ActivePresentation
.Slides(1).Shapes(1).Visible = msoFalse
'I'd really like Shapes("employeelist")
.PrintOut
End With
End Sub

Jason
WinXP, PPT2003
 
S

Steve Rindsberg

Hello an TIA. I'd like to hide an object (whether it be
an autoshape, textbox, imported image) on a pre-
determined slide when printing. My code doesn't work. And
my other question is, how do I *name* my objects so I
don't have to refer to them as shape(1), shape(2), etc.

This'll give you the code for renaming a shape:

Edit the name of a shape
http://www.rdpslides.com/pptfaq/FAQ00584.htm

Now, what's your code not doing that you want it to?
 

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