Run macro from IF function

  • Thread starter Thread starter Stu
  • Start date Start date
Stu,

Functions called from worksheet cells can only return a value; they cannot
change the Excel environment in any way, including changing the value of any
cell. The reason is that Excel must keep a model of what cells depend on
what other cells, called the "dependency tree", in order to calculate cells
in the proper order. Since Excel cannot know what cells might be modified by
a VBA macro, it prevents you from changing any cell.

So the short answer is that you can't do this.
 

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

Back
Top