ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Using a named range (https://www.excelbanter.com/excel-programming/335823-using-named-range.html)

Richard Mogy

Using a named range
 
I have created a range using

ActiveWorkbook.Names.Add Name:= _
"tk", RefersToR1C1:= _
"=R" & firstrow & "C4:R" & lastrow & "C7"

and now I would like to sort the data in "tk"

How do I select that range so that I can sort it?

Thanks in advance --

Rich Mogy



Paul Smith[_3_]

Using a named range
 
Range("tk").select (or .sort)


"Richard Mogy" wrote in message
m...
I have created a range using

ActiveWorkbook.Names.Add Name:= _
"tk", RefersToR1C1:= _
"=R" & firstrow & "C4:R" & lastrow & "C7"

and now I would like to sort the data in "tk"

How do I select that range so that I can sort it?

Thanks in advance --

Rich Mogy




bigwheel

Using a named range
 
Range("tk").Select

"Richard Mogy" wrote:

I have created a range using

ActiveWorkbook.Names.Add Name:= _
"tk", RefersToR1C1:= _
"=R" & firstrow & "C4:R" & lastrow & "C7"

and now I would like to sort the data in "tk"

How do I select that range so that I can sort it?

Thanks in advance --

Rich Mogy





All times are GMT +1. The time now is 10:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com