I've seen it written that ranges can't be used as constants.

I've got 2 different ranges that I refer to on every worksheet and in
many subs and functions. I can't figure out how to declare the ranges
and have them available in all mod, sheets, subs, etc.

Here what I have in private subs:
Dim IR As Range
Dim FR As Range
 Set IR = Range("D10:D200")
 Set FR = Range("G10:G200")

Isn't there a way to declare these publicly so that I don't have to
"set" them in each private sub?

Thanks
Doug

--~--~---------~--~----~------------~-------~--~----~
-------------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
-------------------------------------------------------------------------------------
-~----------~----~----~----~------~----~------~--~---

Reply via email to