What is the lifetime of a global variable in excel vba?

Any of these will reset global variables:

  1. Using “End”
  2. An unhandled runtime error
  3. Editing code
  4. Closing the workbook containing the VB project

That’s not necessarily an exhaustive list though…

Leave a Comment