View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
DKY[_10_] DKY[_10_] is offline
external usenet poster
 
Posts: 1
Default sorting code problems


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
-------------------
Rows("1:61775").Select
Range("C1").Activate
Selection.sort Key1:=Range("C1"), Order1:=xlAscending, Header:= _
xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom

-------------------

--
DK
-----------------------------------------------------------------------
DKY's Profile: http://www.excelforum.com/member.php...fo&userid=1451
View this thread: http://www.excelforum.com/showthread.php?threadid=26315