running macros from IF

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Please help, What is the command to run a macro from an IF condition. The
macro is called MacroB so: IF(K39=60,run macro,stop) from the programming
format of: if cell K39 =60 the run the macro else stop. Thank you
 
You can't do it that way; the True and False branches of the IF have to evaluate to a value via formulas.
Look at event procedures instead. Here's a link:

http://www.cpearson.com/excel/events.htm

--
Kind regards,

Niek Otten


| Please help, What is the command to run a macro from an IF condition. The
| macro is called MacroB so: IF(K39=60,run macro,stop) from the programming
| format of: if cell K39 =60 the run the macro else stop. Thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top