Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 67
Default Problem sorting in Excel 2000 vs. 2003

I have a macro that sorts the following code fine in Excel 2003 but stops the
macro in Excel 2000. Here is the code that is not working in Excel 2000. Any
suggestions are appreciated:

Range("A5:S5000").Select
Selection.Sort Key1:=Range("A5"), Order1:=xlAscending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal

--
David P.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Problem sorting in Excel 2000 vs. 2003

DataOption1:=xlSortNormal

Was added in xl2002.

Delete it from your code and you should be ok (don't forget the preceding comma
and underscore, too).


David P. wrote:

I have a macro that sorts the following code fine in Excel 2003 but stops the
macro in Excel 2000. Here is the code that is not working in Excel 2000. Any
suggestions are appreciated:

Range("A5:S5000").Select
Selection.Sort Key1:=Range("A5"), Order1:=xlAscending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal

--
David P.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 67
Default Problem sorting in Excel 2000 vs. 2003

That's fantastic Dave. Thanks so much.
--
David P.


"Dave Peterson" wrote:

DataOption1:=xlSortNormal

Was added in xl2002.

Delete it from your code and you should be ok (don't forget the preceding comma
and underscore, too).


David P. wrote:

I have a macro that sorts the following code fine in Excel 2003 but stops the
macro in Excel 2000. Here is the code that is not working in Excel 2000. Any
suggestions are appreciated:

Range("A5:S5000").Select
Selection.Sort Key1:=Range("A5"), Order1:=xlAscending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal

--
David P.


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Problem sorting in Excel 2000 vs. 2003

We "David P.'s" have to stick together!

David P. wrote:

That's fantastic Dave. Thanks so much.
--
David P.

"Dave Peterson" wrote:

DataOption1:=xlSortNormal

Was added in xl2002.

Delete it from your code and you should be ok (don't forget the preceding comma
and underscore, too).


David P. wrote:

I have a macro that sorts the following code fine in Excel 2003 but stops the
macro in Excel 2000. Here is the code that is not working in Excel 2000. Any
suggestions are appreciated:

Range("A5:S5000").Select
Selection.Sort Key1:=Range("A5"), Order1:=xlAscending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal

--
David P.


--

Dave Peterson


--

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
problem copying visible cells from 2000 to 2003 rtillt Excel Discussion (Misc queries) 2 August 18th 06 05:34 PM
Problem with Excel 2000 / 2003 TonTon165 Excel Discussion (Misc queries) 0 July 17th 06 08:14 PM
Calender Object problem in Excel 2000 and 2003 Suketu Excel Discussion (Misc queries) 0 April 20th 06 08:29 PM
Upgrade from Excel 2000 to Excel 2003 without MS Office 2003? brigida3 Excel Discussion (Misc queries) 1 January 22nd 06 05:13 PM
sorting problem in excel 2000 inenewbl Excel Discussion (Misc queries) 1 June 13th 05 04:48 AM


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

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"