Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have code that nicely sorts any values placed in col 13 and 16 of
some lookup lists. What code change will cause the sort to ignore a header row? Private Sub Worksheet_Change(ByVal Target As Range) 'DD Define columns to autosort when record added or deleted If Target.Column = 13 Or Target.Column = 16 Then Columns(Target.Column).Sort _ Key1:=Cells(1, Target.Column), Order1:=xlAscending, _ Header:=xlGuess, OrderCustom:=1, _ MatchCase:=False, Orientation:=xlTopToBottom End If End Sub Thanks, Dennis |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Autosort in Excel | Excel Discussion (Misc queries) | |||
autosort | Excel Worksheet Functions | |||
Can I AutoSort without refreshing? | Excel Discussion (Misc queries) | |||
Can I AutoSort without refreshing? | Excel Discussion (Misc queries) | |||
AutoSort in VBA | Excel Discussion (Misc queries) |