Use IF function to automatic run macro

G

Guest

I want to use the IF function to automatic run my macro when the condition is
true or false. Currently the macro need to run by mouse click or keyboard
shortcut .

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/com...dg=microsoft.public.excel.worksheet.functions
 
N

Niek Otten

Not possible that way.
But look at Event procedures:

http://www.cpearson.com/excel/events.htm

--
Kind regards,

Niek Otten

|I want to use the IF function to automatic run my macro when the condition is
| true or false. Currently the macro need to run by mouse click or keyboard
| shortcut .
|
| ----------------
| This post is a suggestion for Microsoft, and Microsoft responds to the
| suggestions with the most votes. To vote for this suggestion, click the "I
| Agree" button in the message pane. If you do not see the button, follow this
| link to open the suggestion in the Microsoft Web-based Newsreader and then
| click "I Agree" in the message pane.
|
|
http://www.microsoft.com/office/com...dg=microsoft.public.excel.worksheet.functions
 
R

Ronald Dodge

The only way to possibly get this to work the way you want it to work is to
run it via the Calculate Event of either the Worksheet or the Workbook.
However, this would only take place when the calculation of that formula has
taken place within the cell that it's located in.

--
Ronald R. Dodge, Jr.
Production Statistician/Programmer
Master MOUS 2000

YS Lee said:
I want to use the IF function to automatic run my macro when the condition is
true or false. Currently the macro need to run by mouse click or keyboard
shortcut .

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
http://www.microsoft.com/office/com...dg=microsoft.public.excel.worksheet.functions
 

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

Top