I have a variable i want to use through-out my workbook, but Excel does not seem to let me i have defined it etc
and
you get the idea.
How can i do this?
Code:
Sub Auto_Open()
Dim ImprestProtected As Integer
ImprestProtected = 1
End Sub
and
Code:
Private Sub Worksheet_Activate()
If ImprestProtected = 0 Then Exit Sub
UserForm12.Show
End Sub
you get the idea.
How can i do this?