N
Nick
If i have the following code to sort two columns linked as
a macro...
Sheets("low").Select
Range("B4:B15").Select
Selection.sort Key1:=Range("B4"), Order1:=xlAscending,
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False,
Orientation:=xlTopToBottom
Range("C4:C15").Select
Selection.sort Key1:=Range("C4"), Order1:=xlAscending,
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False,
Orientation:=xlTopToBottom
If i want to later change this range, it is obviously
better to have a range name. how would you code this into
VB? would you also have a range name for the sorting
criteria?
cheers
nick
a macro...
Sheets("low").Select
Range("B4:B15").Select
Selection.sort Key1:=Range("B4"), Order1:=xlAscending,
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False,
Orientation:=xlTopToBottom
Range("C4:C15").Select
Selection.sort Key1:=Range("C4"), Order1:=xlAscending,
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False,
Orientation:=xlTopToBottom
If i want to later change this range, it is obviously
better to have a range name. how would you code this into
VB? would you also have a range name for the sorting
criteria?
cheers
nick