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

I need a macro for 2007 to sort by columns A, B and C then after I do
something else I need to resort by D, A, B and C.

The problem I think is that Excel keeps the original sorting criteria and
adds the new to the end. How can I reset the sorting conditions to it starts
fresh the second time?


Thanks in advance

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Sorting in 2007

Please post your code and someone should be able to show you what needs to be
done.
--
HTH,
Barb Reinhardt



"LuisE" wrote:

I need a macro for 2007 to sort by columns A, B and C then after I do
something else I need to resort by D, A, B and C.

The problem I think is that Excel keeps the original sorting criteria and
adds the new to the end. How can I reset the sorting conditions to it starts
fresh the second time?


Thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Sorting in 2007

I didn't start xl2007 to test this, but I've seen this kind of stuff posted in
the newsgroups:

activesheet.Sort.SortFields.Clear

LuisE wrote:

I need a macro for 2007 to sort by columns A, B and C then after I do
something else I need to resort by D, A, B and C.

The problem I think is that Excel keeps the original sorting criteria and
adds the new to the end. How can I reset the sorting conditions to it starts
fresh the second time?

Thanks in advance


--

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
Sorting in Excel 2007 Lee New Users to Excel 2 February 20th 09 02:26 AM
Excel 2007 - Sorting Nadine Excel Worksheet Functions 0 January 19th 09 10:41 PM
Sorting 2007 data Vicky Excel Discussion (Misc queries) 3 September 16th 08 09:34 PM
Sorting in Excel 2007 Vicky Excel Discussion (Misc queries) 0 September 12th 08 01:35 PM
Repeat sorting with F4 in 2007 G-Master Excel Discussion (Misc queries) 2 April 13th 07 02:36 PM


All times are GMT +1. The time now is 09:02 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"