How to unhide a hidden shape

roscoe

Well-known Member
Joined
Jun 4, 2002
Messages
1,026
I have a file with routine that hides a callout when opened assuming that macros are enabled, and unhides when closing the file.

Problem now I'm getting an error that I think is because the number of the shape has changed, but becasue it is hidden I can't find to be sure.

How can I unhide all shapes on the worksheet?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

PA HS Teacher

Well-known Member
Joined
Jul 17, 2004
Messages
2,838
How about:

<font face=Courier New>  <SPAN style="color:#00007F">Dim</SPAN> S <SPAN style="color:#00007F">As</SPAN> Shape<br>  <SPAN style="color:#00007F">For</SPAN> <SPAN style="color:#00007F">Each</SPAN> S <SPAN style="color:#00007F">In</SPAN> Worksheets("Sheet1").Shapes<br>        S.Visible = <SPAN style="color:#00007F">True</SPAN><br>  <SPAN style="color:#00007F">Next</SPAN> S</FONT>
 

Forum statistics

Threads
1,176,719
Messages
5,904,617
Members
435,102
Latest member
Randy N

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
Top