
Ad oggi:
Per le caselle di controllo esempio:
Sub graf1()
Sheets("grafico 1").Visible = True
Sheets("grafico 1").Select
End Sub
Per il pulsante clear:
Sub clear()
Worksheets("inserimento").Unprotect Password:="pippo"
ActiveSheet.Shapes("Casella di controllo 9").OLEFormat.Object.Value = False
ActiveSheet.Shapes("Casella di controllo 11").OLEFormat.Object.Value = False
ActiveSheet.Shapes("Casella di controllo 13").OLEFormat.Object.Value = False
Worksheets("inserimento").Protect Password:="pippo"
End Sub |
Sub graf1()
Sheets("graf 1").Visible = True
Sheets("graf 1").Select
End Sub
Sub graf2()
Sheets("graf 2").Visible = True
Sheets("graf 2").Select
End Sub
Sub graf3()
Sheets("graf 3").Visible = True
Sheets("graf 3").Select
End Sub
Sub clear()
ActiveSheet.Shapes("Casella di controllo 1").OLEFormat.Object.Value = False
ActiveSheet.Shapes("Casella di controllo 3").OLEFormat.Object.Value = False
ActiveSheet.Shapes("Casella di controllo 5").OLEFormat.Object.Value = False
End Sub
Sub Invio()
If ActiveSheet.Shapes("Casella di controllo 1").ControlFormat.Value = xlOn Then Call graf1
If ActiveSheet.Shapes("Casella di controllo 3").ControlFormat.Value = xlOn Then Call graf2
If ActiveSheet.Shapes("Casella di controllo 5").ControlFormat.Value = xlOn Then Call graf3
End Sub
|
Sub invio()
If ActiveSheet.Shapes("Casella di controllo 1").ControlFormat.Value = xlOn Then
Call graf1
Exit Sub
ElseIf ActiveSheet.Shapes("Casella di controllo 2").ControlFormat.Value = xlOn Then
Call graf2
Exit Sub
ElseIf ActiveSheet.Shapes("Casella di controllo 3").ControlFormat.Value = xlOn Then Call graf3
End If
End Sub |
