Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I would like to disable / enable depending on a Cells value. For example if cell A1 = "OK" enable the command button, if the Cell equals anything else I would like it disabled. Public Sub Worksheet_Change(ByVal Target As Range) With Target If .Address = "Home!$C$13" Then If .Value = "OK" Then Me.OLEObject("cmdFX").Enabled = True Else Me.OLEObject("cmdFX").Enabled = False End If End If End With End Sub My sheet name is called "HOME", I have tried the VB code above but it does not work. Can anyone help? Thanks in advance. Brett |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to disable/enable command button(ActiveX) using macro | Excel Discussion (Misc queries) | |||
Enable/Disable Command Button | Excel Programming | |||
Enable / Disable a button using a macro | Excel Programming | |||
How to enable/disable a button. | Excel Programming | |||
Enable/Disable Button | Excel Programming |