J job1job1 May 28, 2004 #1 Is there a command that I can use within an =IF( statement to run macro? For example: =IF(C2="Y",run=macroname,"N") Thanks
Is there a command that I can use within an =IF( statement to run macro? For example: =IF(C2="Y",run=macroname,"N") Thanks
F Frank Kabel May 28, 2004 #3 Hi only possible with VBA (using an event procedure like worksheet_change). See: http://www.cpearson.com/excel/events.htm
Hi only possible with VBA (using an event procedure like worksheet_change). See: http://www.cpearson.com/excel/events.htm
H Harlan Grove May 28, 2004 #5 Is there a command that I can use within an =IF( statement to run a macro? Click to expand... ... No. Closest you can get is Calculate and SheetCalculate event handlers.
Is there a command that I can use within an =IF( statement to run a macro? Click to expand... ... No. Closest you can get is Calculate and SheetCalculate event handlers.
G Guest May 28, 2004 #6 Frank If you changed the macro from a Sub to a Function wouldn't it work (without it being an event procedure)?
Frank If you changed the macro from a Sub to a Function wouldn't it work (without it being an event procedure)?
F Frank Kabel May 28, 2004 #7 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!
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!