problem excel 2000

  • Thread starter Thread starter hans
  • Start date Start date
H

hans

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
 
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
(e-mail address removed)
http://www.vonixx.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top