VBA Hide/Show Group of Shapes

Kaladin

New Member
Joined
Jul 16, 2014
Messages
48
Hey, guys.

I have a bunch of shapes that I grouped together. I want to Show/Hide them with a macro.

I tried ActiveSheet.Shapes("Group 1").Hide and that didn't work at all.

Is there a way to hide the whole group or show the whole group or do I have to show/hide them all individually?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
18,144
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Try:
ActiveSheet.Shapes("Group 1").Visible = False

to hide all shapes in Group 1.
 
Upvote 0

Kaladin

New Member
Joined
Jul 16, 2014
Messages
48
You're brilliant. I was thinking of UserForms... My goodness. I've spent too long away from Excel.
 
Upvote 0

Forum statistics

Threads
1,195,632
Messages
6,010,807
Members
441,569
Latest member
PeggyLee

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