Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Magenta Ricci   on Nov 02 In MS Office Category.

  
Question Answered By: Kiet Jainukul   on Nov 02

If you use Static instead of Dim when you declare the variable  in your sub,
the value is retained while the workbook is open. It is not visible to other
subs and is destroyed when the workbook is closed.

Share: 

 

This Question has 9 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on how to preserve variable value between subroutine calls? Or get search suggestion and latest updates.


Tagged: