Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Sorting Named Range

Hi,

How do I sort a named range? Do I have to use

Application.goto reference:="Name of Range"
Selection.sort key1:=Range("A1") ......

Or is there a shoreter version of it?

Thanks

Andi


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Sorting Named Range

with worksheets("sheet99").range("NameOfRange")
.sort key1:=.columns(1), ...
end with

would be one way.

Andibevan wrote:

Hi,

How do I sort a named range? Do I have to use

Application.goto reference:="Name of Range"
Selection.sort key1:=Range("A1") ......

Or is there a shoreter version of it?

Thanks

Andi


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Sorting Named Range

Thanks

"Dave Peterson" wrote in message
...
with worksheets("sheet99").range("NameOfRange")
.sort key1:=.columns(1), ...
end with

would be one way.

Andibevan wrote:

Hi,

How do I sort a named range? Do I have to use

Application.goto reference:="Name of Range"
Selection.sort key1:=Range("A1") ......

Or is there a shoreter version of it?

Thanks

Andi


--

Dave Peterson



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array as a "named range" - formula ok in cells, but error as "named range" tskogstrom Excel Discussion (Misc queries) 11 December 28th 06 04:44 PM
inserting a named range into new cells based on a named cell Peter S. Excel Discussion (Misc queries) 1 June 4th 06 03:53 AM
If any cell in named range = 8 then shade named range JJ[_8_] Excel Programming 3 August 26th 05 11:09 PM
sorting named range inquirer Excel Programming 2 May 14th 05 01:16 AM
Sorting lists of Named Ranges Daniel Magnus Bennét Björck Excel Programming 5 February 11th 04 10:02 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"