Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
,I need to write a simple macro which checks value in a cell then, depending
on value returned, starts macro a or macro b. how do i do it. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim myCell as range
set mycell = workbooks("somebook.xls").worksheets("sheet999").r ange("a1") or something like set mycell = activesheet.range("a1") if mycell.value = 8 then call othermacronamehere else call adifferentmacrohere end if a m spock wrote: ,I need to write a simple macro which checks value in a cell then, depending on value returned, starts macro a or macro b. how do i do it. -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Many Thanks. Works like a charm!
"Dave Peterson" wrote: Dim myCell as range set mycell = workbooks("somebook.xls").worksheets("sheet999").r ange("a1") or something like set mycell = activesheet.range("a1") if mycell.value = 8 then call othermacronamehere else call adifferentmacrohere end if a m spock wrote: ,I need to write a simple macro which checks value in a cell then, depending on value returned, starts macro a or macro b. how do i do it. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
AutoRun Macro with a delay to give user the choice to cancel the macro | Excel Programming | |||
Macro not showing in Tools/Macro/Macros yet show up when I goto VBA editor | Excel Programming | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |