i have 2 codes
first
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Range("E33") = 1 Then
CommandButton3.Visible = False
CommandButton4.Visible = False
ActiveSheet.Shapes("OKVIR2").Visible = False
Else
CommandButton3.Visible = True
CommandButton4.Visible = True
ActiveSheet.Shapes("OKVIR2").Visible = True
End If
End Sub
and second
Private Sub Worksheet_SelectionChange2(ByVal Target As Excel.Range)
If Range("E34") = 1 Then
CommandButton7.Visible = False
Else
CommandButton7.Visible = True
End If
End Sub
first is working, second dont, anyone know why? where is mistake?
first
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Range("E33") = 1 Then
CommandButton3.Visible = False
CommandButton4.Visible = False
ActiveSheet.Shapes("OKVIR2").Visible = False
Else
CommandButton3.Visible = True
CommandButton4.Visible = True
ActiveSheet.Shapes("OKVIR2").Visible = True
End If
End Sub
and second
Private Sub Worksheet_SelectionChange2(ByVal Target As Excel.Range)
If Range("E34") = 1 Then
CommandButton7.Visible = False
Else
CommandButton7.Visible = True
End If
End Sub
first is working, second dont, anyone know why? where is mistake?