Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default problem excel 2000

I use the following line in excel 2003:

Range(Cells(1, ccol), Cells(I - 1, ccol + 1)).Select
Selection.Sort Key1:=Range(Cells(2, ccol).Address),
Order1:=xlAscending, Header:=xlGuess, OrderCustom:=1, _
MatchCase:=False, Orientation:=xlTopToBottom, DataOption1:=xlSortNormal

Works fine.

When i use this macro in excel 2000 it does not work.

What is going wrong?

Greetings Hans


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default problem excel 2000

Remove the ", DataOption1:=xlSortNormal" from the fine part of your macro
See whether it works

So, the code becomes

Range(Cells(1, ccol), Cells(I - 1, ccol + 1)).Selec
Selection.Sort Key1:=Range(Cells(2, ccol).Address), Order1:=xlAscending, Header:=xlGuess, OrderCustom:=1,
MatchCase:=False, Orientation:=xlTopToBotto

Regards
Edwin Ta

http://www.vonixx.com
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
Excel 2000 Problem A. J. Castelli Excel Discussion (Misc queries) 0 October 3rd 09 03:09 AM
PROBLEM:How to squeeze 2 Page sized Chart in Excel 2000 & embed in Word 2000 and print from Word to fit one page ??? [email protected] Excel Discussion (Misc queries) 2 September 10th 08 11:07 AM
PROBLEM:How to squeeze 2 Page sized Chart in Excel 2000 & embed in Word 2000 and print from Word to fit one page ??? [email protected] New Users to Excel 2 September 10th 08 11:07 AM
excel 2000 problem Regina Excel Worksheet Functions 1 October 6th 07 03:36 PM
Problem with Excel 2000 ACN Bug Excel Discussion (Misc queries) 2 July 29th 05 10:23 PM


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