I want to have a macro to hide/unhide callouts.
The intention is to have an information button that once presses show or hide the information callouts.
The problem is that I have other arrows and shapes that I don't want to be hidden.
With the following code (1) I can hide all objects:
Dim sObject As Shape
For Each sObject In ActiveSheet.Shapes
If sObject.Visible = False Then
sObject.Visible = True
Else
sObject.Visible = False
End If
Next
And with this code (2) I can hide/unhide specific callout shapes
If ActiveSheet.Shapes("Rectangular Callout 6").Visible = False Then
ActiveSheet.Shapes("Rectangular Callout 6").Visible = True
Else
ActiveSheet.Shapes("Rectangular Callout 6").Visible = False
End If
How can I have the first code (1) to run through the callout shapes only like in the second code (2)?