ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Run macro via cell value (https://www.excelbanter.com/excel-discussion-misc-queries/24654-run-macro-via-cell-value.html)

Pat

Run macro via cell value
 
Is it possible to run a macro based on the value of a cell. Say for example
A1 contains the word "run" can that word be the trigger to automatically run
a macro?

Pat



Harald Staff

Hi Pat

A worksheet formula can not trig a macro. No way.

But a worksheet has several events; macros that run when certain things
happen. There is an event firing when you enter something into a cell,
another when the sheet recalculates, ... see
http://www.cpearson.com/excel/events.htm for more on this.

HTH. Best wishes Harald

"Pat" skrev i melding
...
Is it possible to run a macro based on the value of a cell. Say for

example
A1 contains the word "run" can that word be the trigger to automatically

run
a macro?

Pat





Pat

That answers that!
thanks Harald

Pat
"Harald Staff" wrote in message
...
Hi Pat

A worksheet formula can not trig a macro. No way.

But a worksheet has several events; macros that run when certain things
happen. There is an event firing when you enter something into a cell,
another when the sheet recalculates, ... see
http://www.cpearson.com/excel/events.htm for more on this.

HTH. Best wishes Harald

"Pat" skrev i melding
...
Is it possible to run a macro based on the value of a cell. Say for

example
A1 contains the word "run" can that word be the trigger to automatically

run
a macro?

Pat








All times are GMT +1. The time now is 12:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com