Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Conditional Macro
I have a macro which is assigned to a control box or button. However I do not
want the macro to run if a value is entered in another cell in the worksheet. Eg if Cell A1 has a drop down list and if "Apply Mannually" is chosen then the macro should not run if teh user accidentally presses the control box button How can I do this -- Kav |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Conditional Macro
Private Sub commandButton1_Click()
if Range("A1").Value = "Apply Manually" then exit sub ' current code End Sub -- Regards, Tom Ogilvy "Kav" wrote: I have a macro which is assigned to a control box or button. However I do not want the macro to run if a value is entered in another cell in the worksheet. Eg if Cell A1 has a drop down list and if "Apply Mannually" is chosen then the macro should not run if teh user accidentally presses the control box button How can I do this -- Kav |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
conditional sum macro | Excel Programming | |||
[B]Conditional Macro?[/B] | Excel Discussion (Misc queries) | |||
conditional sum and macro | Excel Discussion (Misc queries) | |||
conditional macro | Excel Programming | |||
Conditional Macro | Excel Worksheet Functions |