Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi,
i have a few command buttons created directly on the spreadsheet (not through userforms). i need to have the buttons appears and disappear depending on a cell's value. ex. if the cell value = 1, have the buttons become visible and invisible if any other value. visible or enabled..either is fine. the code i am using is this but i can't seem to get it to work. i am using excel 2002. appreciate any help. thanks. Private Sub Worksheet_Activate() If Target.Address = "n40" and Target.Value = 1 Then Worksheets("Sheet1").CommandButton("button1").Enab led = True Else Worksheets("Sheet1").CommandButton("button1").Enab led = False End If End Sub |
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 |