Jeff,
A user-defined function might work. It's a macro called by the cell, except
it can't change stuff on the worksheet as can a Sub (which you're probably
thinking of when you say macro). Written in VBA, just like a sub. You can
pass stuff to it, and get a value back.
=IF(X=10, MyFunction(),"").
=IF(X=10, MyFunction(10, B2, etc),""). Can't say more without knowing what
you want to do.
--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------
Jeff Wright said:
Is it possible for a formula to trigger a macro?? I want to do something
like:
=IF(X=10,[run the macro],"")
Thanks for your help!
Jeff