How do I make the sort default to 'No header rows'

G

Guest

I often sort a range of cells using the sort ascending arrows. Most of the
time the first row is not sorted due to Excel assuming that the first row is
a header.
How do I make the default "No header rows" so that the sort ascending works
without having to use Data, Sort
 
D

David McRitchie

I don't know of any way, Ctrl+Z is your friend, so if it doesn't work
use Data Sort

You could write your own macros, and assign to your own toolbar button
http://www.mvps.org/dmcritchie/excel/toolbars.htm

Sub SortAscending_NoHeader()
Cells.Sort Key1:=ActiveCell, _
Order1:=xlAscending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, _
Orientation:=xlTopToBottom
End Sub
Sub SortAscending_Header()
Cells.Sort Key1:=ActiveCell, _
Order1:=xlAscending, Header:=xlYes, _
OrderCustom:=1, MatchCase:=False, _
Orientation:=xlTopToBottom
End Sub


--
 

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

Top