Home |
Search |
Today's Posts |
#13
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The change to N40 is not triggering the change event. You can either test
N37, like so Private Sub Worksheet_Change(ByVal Target As Range) With Target If .Address = "$N$37" Then If .Value = "monthly" Then Me.OLEObjects("CommandButton1").Enabled = True Else Me.OLEObjects("CommandButton1").Enabled = False End If End If End With End Sub or add more complex calculate event code. -- HTH RP (remove nothere from the email address if mailing direct) "yoram" wrote in message oups.com... ok, cell N37 is data validated with the 'list' condition. the list has three three text options,"weekly","monthly","yearly". N40 has this formula: if(N37="monthly",1,"0"). so if "monthly" is the option the user chooses, i want the command button to be enabled and disabled at all other times. btw N37 is a merge of three cells for formatting purposes...i doubt that would make any difference though. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Selecting a cell depending on the other cell's value, kind of | Links and Linking in Excel | |||
How can I change a picture depending on a cell's contents | Excel Discussion (Misc queries) | |||
CONDITIONAL RESULTS DEPENDING ON CELL'S NAME (sumproduct) | Excel Discussion (Misc queries) | |||
How do I get a cell to flash depending on another cell's value? | Excel Worksheet Functions | |||
autowrite a cell depending on another cell's content | Excel Programming |