Keith
Registered User.
- Local time
- Today, 09:06
- Joined
- May 21, 2000
- Messages
- 129
I wish to check the value of a cell when a form is opened. I have spent a long time trying to find a solution.
The procedure that I have is,
Private Sub UserForm_Activate()
Dim x As Integer
x = Worksheets("Data").Range("P1
1").Value
Debug.Print x
End Sub
I get the error ' Line is not an executable statement'. any suggestions please
The procedure that I have is,
Private Sub UserForm_Activate()
Dim x As Integer
x = Worksheets("Data").Range("P1

Debug.Print x
End Sub
I get the error ' Line is not an executable statement'. any suggestions please