Problem with ActiveSheet code

O

ordnance1

What can I do to get this code to work?


Private Sub UserForm_Initialize()

IF ActiveSheet range("E2").Value>0 then OptionButton2.Visible = False

End Sub
 
R

Rick Rothstein

You need a dot between ActiveSheet and Range...

If ActiveSheet.Range("E2").Value > 0 Then...
 
O

ordnance1

Thanks to both of you for the speedy response.

Rick Rothstein said:
You need a dot between ActiveSheet and Range...

If ActiveSheet.Range("E2").Value > 0 Then...
 
Top