Run Macro From Within an =IF statement

  • Thread starter Thread starter job1job1
  • Start date Start date
J

job1job1

Is there a command that I can use within an =IF( statement to run
macro?

For example:

=IF(C2="Y",run=macroname,"N")

Thanks
 
Frank
If you changed the macro from a Sub to a Function wouldn't it work (without it being an event procedure)?
 
Hi
depends on what this macro should do. If it should only return a value,
no problem but if it should change formats or other cells, no chance!
 
Back
Top