View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
John Wirt[_5_] John Wirt[_5_] is offline
external usenet poster
 
Posts: 18
Default Declaring a Public variable as a Range and its lifetime

I want to store a range in a public variable that lasts as long as the
workbook is open.

Will this declaration in a Module header accomplish this:

Public RA as Range

Sub XXX...
Set RA=Range("A1")
....

The scope of this variable is the project. What is its lifetime?

John Wirt