How do I run a macro from inside an"=IF" formula in Excel 2003?

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

Guest

I need to run a short macro from inside an Excel "IF" formula; running one
macro when the "IF" statement is TRUE, and another macro when the "IF"
statement is FALSE.
 
Drawn83 said:
I need to run a short macro from inside an Excel "IF" formula; running one
macro when the "IF" statement is TRUE, and another macro when the "IF"
statement is FALSE.

You can do that, but not from a 'normal' IF-formula. First create your own
user defined function, like =OWNIF(), and then call a macro from there.
 

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