Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can use an If...Then statement to control the macro.
Sub runMacro() If Range("E3") = "" Then Exit Sub End If 'The rest of your macro here End Sub "Peterzh193 via OfficeKB.com" <u52491@uwe wrote in message news:97b1381880940@uwe... want a macro that refuses to run if cell E3 is blank/empty to run the macro correcty data must be in this cell but it is user error that may leave it blank.....can i avoid this with a question (msgbox) as part of a macro? -- Message posted via http://www.officekb.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA macro runs fine, but freezes if I try to do ANYTHING else whileit runs | Setting up and Configuration of Excel | |||
Macro that runs when a cell is selected | Excel Discussion (Misc queries) | |||
blank display while macro runs | Excel Programming | |||
Macro runs on cell value | Excel Programming | |||
macro runs if I Clear a cell | Excel Programming |