makeing the pictures visible or invisible

  • Thread starter Thread starter 2007-User
  • Start date Start date
2

2007-User

Hi,

I have some pictures on my worksheet named object 39 and object 40 and ...
I need to know how I can make them to be visible or invisible base on a
cell's value ?

Thanks in advance.
 
this should hide/unhide all shapes on the active sheet
Sub getshapenames()
For Each sh In ActiveSheet.Shapes
sh.visible=not sh.visible
Next sh
End Sub
 
Thanks Don,

But that is not a shape, is a picture that I have inserted, I want to be
able to hide/unhide them base on their names,is it possible ?
 
If they are the ONLY ones on the sheet, try it!!
If not, let me know how many and names of each on the sheet and the ones you
want to hide.
 
Thanks Don,
as an example let try to make "object 39" invisible and keep the rest to be
visible.
is it possible ?
 
try this idea. Note name must be identical

If sh.Name = "Picture 1" Then sh.Visible = Not sh.Visible
 

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

Back
Top