B4L4KS
Board Regular
- Joined
- Mar 7, 2011
- Messages
- 69
this is my password VBA
why wont it work
Private Sub Worksheet_Active()
Range("iv1111").Select
Retry:
x = InputBox("Enter password")
If x <> "slade" Then
If MsgBox("Invalid password.", vbRetryCancel) = vRetry Then GoTo Retry
Sheet1.Activate
Else
Range("a1").Select
End If
End Sub
any help please
kristian
why wont it work
Private Sub Worksheet_Active()
Range("iv1111").Select
Retry:
x = InputBox("Enter password")
If x <> "slade" Then
If MsgBox("Invalid password.", vbRetryCancel) = vRetry Then GoTo Retry
Sheet1.Activate
Else
Range("a1").Select
End If
End Sub
any help please
kristian