Help accessing properties of an image

reneuend

Board Regular
Joined
May 20, 2009
Messages
155
I copy/pasted an image on an Excel Worksheet. I'd like to have it display or be hidden based on when a user changes a cell value or presses a button.

How do I access this image? I changed the name from "Picture 9" to "picValChanged" using the Excel field for naming named ranges.

thx for any help.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
You can use:
Code:
activesheet.shapes("picValChanged")
for example.
 
Upvote 0
Hi this will Hide or Unhide the picture each time the code is run.
Code:
[COLOR="Navy"]Sub[/COLOR] MG26Apr22
[COLOR="Navy"]With[/COLOR] ActiveSheet.Shapes("picValChanged")
.Visible = True = .Visible = False
[COLOR="Navy"]End[/COLOR] [COLOR="Navy"]With[/COLOR]
[COLOR="Navy"]End[/COLOR] [COLOR="Navy"]Sub[/COLOR]
Regards Mick
 
Upvote 0
Or:
Code:
Sub MG26Apr22
With ActiveSheet.Shapes("picValChanged")
.Visible = Not .Visible
End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,752
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top