Aussie Grid
New Member
- Joined
- Jan 14, 2010
- Messages
- 47
This code is perfect but I would like it to perform on all sheets, rather than just the active.
Sub Shapes2()
'Loop through the Shapes collection and use the Type number of the control
Dim myshape As Shape
For Each myshape In ActiveSheet.Shapes
' ActiveX control (control toolbox) or a linked or embedded OLE object.
If myshape.Type = 12 Then myshape.Visible = False
Next myshape
End Sub
Any & all help appreciated.
Aussie Grid
Sub Shapes2()
'Loop through the Shapes collection and use the Type number of the control
Dim myshape As Shape
For Each myshape In ActiveSheet.Shapes
' ActiveX control (control toolbox) or a linked or embedded OLE object.
If myshape.Type = 12 Then myshape.Visible = False
Next myshape
End Sub
Any & all help appreciated.
Aussie Grid