Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Store selected range in string variable

Status
Not open for further replies.

wmbb

Technical User
Jul 17, 2005
320
NL
How can I store a selected range (in excel)in a string variable like "Sheet1!$KR$3:$KT$8"
 
Use the Address property of the Range object.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
hi,

Another option is to Name the range using Formula > Defined Names > Name Manager or using the Name Box after having selected the target range on the target sheet.

Then referencing that NAME in any formula on any sheet will refer to that range on that sheet.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thanks for pointing me in the right direction !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top