#1   Report Post  
Posted to microsoft.public.excel.misc
cmm
 
Posts: n/a
Default Sorting a Range

Hi,

I have a range of cells that starts from column A to Q over mutiple
rows. I tried a macro to sort the range but am constantly failing. I
recorded the manual action of highlighting the required rows, choosing
the sort columns (3) and then sorting (including header) but this is
failing. What I added in the macro is code to choose the last row (so
that when new rows are added the sort will include them dynamically.
Does anyone have a solution for this. I want to have a range with
headers and sort on 3 rows. Column A is sometimes emtpy, but I am only
sorting on EFG (which are always populated).

Thanks and regards

Cedric

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Sorting a Range

Maybe you can find something in the sample code at Debra Dalgleish's site:
http://contextures.com/xlSort02.html


cmm wrote:

Hi,

I have a range of cells that starts from column A to Q over mutiple
rows. I tried a macro to sort the range but am constantly failing. I
recorded the manual action of highlighting the required rows, choosing
the sort columns (3) and then sorting (including header) but this is
failing. What I added in the macro is code to choose the last row (so
that when new rows are added the sort will include them dynamically.
Does anyone have a solution for this. I want to have a range with
headers and sort on 3 rows. Column A is sometimes emtpy, but I am only
sorting on EFG (which are always populated).

Thanks and regards

Cedric


--

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
How do you Identify text as a named range in excel DMDave Excel Discussion (Misc queries) 6 May 7th 06 11:48 PM
VLookup Error in Part of a Named Range Dallas64 Excel Worksheet Functions 6 April 18th 06 02:13 PM
UDF is updateing cells on another sheet with count from current sheet. John Excel Discussion (Misc queries) 3 March 20th 06 03:58 PM
FORMULA at Source range (in Data-validation-List) gives wrong re Eddy Stan Excel Worksheet Functions 6 March 17th 06 07:19 AM
Sorting a range of cells that get value from other cells Matt Caswell Excel Discussion (Misc queries) 3 July 13th 05 04:52 PM


All times are GMT +1. The time now is 08:12 PM.

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

About Us

"It's about Microsoft Excel"