D DKY Sep 24, 2004 #1 I try this code to sort my sheet but end up losing my header (which i row 1) Can anyone help me figure out why? Code
I try this code to sort my sheet but end up losing my header (which i row 1) Can anyone help me figure out why? Code
T Tom Ogilvy Sep 24, 2004 #2 Change xlGuess to xlYes Rows("1:61775").Select Range("C1").Activate Selection.sort Key1:=Range("C1"), Order1:=xlAscending, Header:= _ xlYes, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Change xlGuess to xlYes Rows("1:61775").Select Range("C1").Activate Selection.sort Key1:=Range("C1"), Order1:=xlAscending, Header:= _ xlYes, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
J Jean-Yves Sep 24, 2004 #3 Hi, Read the sort parameters, Header =: xlGuess. ( and check the sort parameters in Help) Excell did a wrong guess. Change it to xlYes Regards, JY
Hi, Read the sort parameters, Header =: xlGuess. ( and check the sort parameters in Help) Excell did a wrong guess. Change it to xlYes Regards, JY