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
Storing a Range in a Public Variable
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Bob Phillips, post: 6192054"] Create a Public Range variable in a general code module, not ThisWorkbook or a worksheet code module, declaring it before any procedures. Not if you try to use activecell as part of the code, you get a problem. But if you use a base cell you can With Worksheets("FSF") Set grngFSF = .Range(.Cells(5, 1), .Cells(5, 1).SpecialCells(xlLastCell)) End With Note that you still cannot select that range if the sheet is not active, but you shouldn't need to. [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Excel Newsgroups
Excel Programming
Storing a Range in a Public Variable
Top