Application.Volatile

  • Thread starter Thread starter Eileen
  • Start date Start date
You can add Application.Volatile to a User Defined Formula/Function by
entering in on its own line in the code.

Public Sub foo()
Application.Volatile
'Existing code
End sub


If you're unfamiliar with User Defined Functions, see David McRitchie's
"Getting Started with Macros and User Defined Functions":

http://www.mvps.org/dmcritchie/excel/getstarted.htm
 
Hi
just simply insert this as the first line in your function e.g.

function your_function()
application.volatile
'your existing code
end function
 
Should have been

Public Function foo()
...
End Function

obviously.
 

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