B
bigjim
I'm using the following code in excel 2003 trying to sort a column of text
values:
ActiveWorkbook.Sheets("cost sheet").Range("a100:a200").Select
Selection.Sort Key1:=Range("a100"), Order1:=xlDescending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
I get an error: "Sort reference is not valid. make sure it's withing the
data ou want to sort and the first sort by box isn't the same or blank.
Most of the cells are blank and all are formatted as text.
Any help would be appreciated
values:
ActiveWorkbook.Sheets("cost sheet").Range("a100:a200").Select
Selection.Sort Key1:=Range("a100"), Order1:=xlDescending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
I get an error: "Sort reference is not valid. make sure it's withing the
data ou want to sort and the first sort by box isn't the same or blank.
Most of the cells are blank and all are formatted as text.
Any help would be appreciated