Needinghlp
New Member
- Joined
- Feb 27, 2013
- Messages
- 25
Hi everyone, I am using the code below to conduct a sort and I wondered if it is possible to exclude a column when sorting i.e. could I exclude column R from the sort so that it remains as is. I have been looking for similar questions and it appears maybe this isn't possible but just wanted to put the question out there in case I've missed the answer. Many thanks.
Private Sub CommandButton1_Click()
'vba_sort_range()
Range("a3:AA1021").Sort Key1:=Range("x3"), _
Order1:=xlDescending, _
Key2:=Range("q3"), _
Order2:=xlDescending, _
Header:=xlNo
Private Sub CommandButton1_Click()
'vba_sort_range()
Range("a3:AA1021").Sort Key1:=Range("x3"), _
Order1:=xlDescending, _
Key2:=Range("q3"), _
Order2:=xlDescending, _
Header:=xlNo