Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
run macro only if condition is met
I need to run a macro (copy one cell into another) only if a certain
condition is met. For example, if x=a, then run this macro. If not, do something else. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
run macro only if condition is met
Sub Macro1()
If Cells(1, 1) = 1 Then Exit Sub Else MsgBox ("HI") End If End Sub -- Gary's Student "Nikonov" wrote: I need to run a macro (copy one cell into another) only if a certain condition is met. For example, if x=a, then run this macro. If not, do something else. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
run macro only if condition is met
Didn't you answer it
if x="a" then run thismacro else do something else end if -- Don Guillett SalesAid Software "Nikonov" wrote in message ... I need to run a macro (copy one cell into another) only if a certain condition is met. For example, if x=a, then run this macro. If not, do something else. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Delete Macro with OR/ELSE condition | Excel Discussion (Misc queries) | |||
Macro if condition | Excel Discussion (Misc queries) | |||
use more than 4 condition in cf without using macro | Excel Worksheet Functions | |||
event macro on a condition | Excel Discussion (Misc queries) | |||
macro to run only under certain condition - how? | Excel Programming |