Option Explicit
Private Sub CommandButton1_Click()
'nasconde le forme
Dim sh As Worksheet
Application.ScreenUpdating = False
For Each sh In ThisWorkbook.Sheets
If LCase(sh.Name) <> "foglio1" Then
With sh
.Shapes("bollo").Visible = False
.Shapes("firma fabio").Visible = False
.Shapes("firma michele").Visible = False
End With
End If
Next
Application.ScreenUpdating = True
End Sub
Private Sub CommandButton2_Click()
'visualizza le forme
Dim sh As Worksheet
Application.ScreenUpdating = False
For Each sh In ThisWorkbook.Sheets
If LCase(sh.Name) <> "foglio1" Then
With sh
.Shapes("bollo").Visible = True
.Shapes("firma fabio").Visible = True
.Shapes("firma michele").Visible = True
End With
End If
Next
Application.ScreenUpdating = True
End Sub |