Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Problem with ActiveSheet code
What can I do to get this code to work?
Private Sub UserForm_Initialize() IF ActiveSheet range("E2").Value0 then OptionButton2.Visible = False End Sub |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Problem with ActiveSheet code
You need a dot between ActiveSheet and Range...
If ActiveSheet.Range("E2").Value 0 Then... -- Rick (MVP - Excel) "ordnance1" wrote in message ... What can I do to get this code to work? Private Sub UserForm_Initialize() IF ActiveSheet range("E2").Value0 then OptionButton2.Visible = False End Sub |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Problem with ActiveSheet code
Hi
You missed a dot: ActiveSheet.range("E2").Value regards Paul On Dec 24, 5:02*pm, "ordnance1" wrote: What can I do to get this code to work? Private Sub UserForm_Initialize() IF ActiveSheet range("E2").Value0 then OptionButton2.Visible = False End Sub |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Problem with ActiveSheet code
Thanks to both of you for the speedy response.
"Rick Rothstein" wrote in message ... You need a dot between ActiveSheet and Range... If ActiveSheet.Range("E2").Value 0 Then... -- Rick (MVP - Excel) "ordnance1" wrote in message ... What can I do to get this code to work? Private Sub UserForm_Initialize() IF ActiveSheet range("E2").Value0 then OptionButton2.Visible = False End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Use a password in VBA ActiveSheet.protect & ActiveSheet.unprotect? | Excel Programming | |||
ActiveSheet.Pictures.Insert problem in excel 2007 | Excel Programming | |||
Copying new activesheet after other activesheet is hidden? | Excel Programming | |||
ActiveSheet.PrintOut - problem | Excel Programming | |||
problem using ActiveSheet in VB sub | Excel Programming |