Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Excel Newsgroups
Excel Programming
Display value of a VBA variable inside a cell
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Gary''s Student, post: 6434882"] Consider: Public b As Boolean Sub dural() b = False End Sub Function bb() Application.Volatile bb = b End Function Sub second() b = True Application.CalculateFullRebuild End Sub The real problem is that Excel has to know when to re-calculate =bb(). By including the Volatile statement, the function will be re-calculated whenever the worksheet is re-calculated. It is now the responsibility of the sub that modifies the public variable to also re-calculate the worksheet, thus refreshing the value of the function. [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Excel Newsgroups
Excel Programming
Display value of a VBA variable inside a cell
Top