ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Sort and Specify that you have a header row (https://www.excelbanter.com/excel-programming/332368-sort-specify-you-have-header-row.html)

Darin Kramer

Sort and Specify that you have a header row
 


Hi There,

I want to specify that I have a header row.
Below is the VB

Selection.Sort Key1:=Range("C2"), Order1:=xlDescending, Header:=xlGuess,
_
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal

So I know I need to change header from xlGuess, but what do I change it
to???

Thanks

D



*** Sent via Developersdex http://www.developersdex.com ***

Nicky[_14_]

Sort and Specify that you have a header row
 

Hi
try xlYes


--
Nicky


------------------------------------------------------------------------
Nicky's Profile: http://www.excelforum.com/member.php...nfo&userid=312
View this thread: http://www.excelforum.com/showthread...hreadid=380798


Darin Kramer

Sort and Specify that you have a header row
 


Thanks Nicky!

*** Sent via Developersdex http://www.developersdex.com ***


All times are GMT +1. The time now is 04:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com