Sorting rows by alphabetizing column E
-
- SilverLounger
- Posts: 1866
- Joined: 25 Jan 2010, 14:00
- Location: Conroe, Texas
Sorting rows by alphabetizing column E
How to sort rows 3:855 by alphabetizing column E
-
- Administrator
- Posts: 76686
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
-
- SilverLounger
- Posts: 1866
- Joined: 25 Jan 2010, 14:00
- Location: Conroe, Texas
-
- Administrator
- Posts: 76686
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Sorting rows by alphabetizing column E
If you want to sort row 3 with the rest of the rows:
If row 3 contains headers that should not be moved, change xlNo to xlYes.
Code: Select all
Range("3:855").Sort Key1:=Range("E1"), Header:=xlNo
Regards,
Hans
Hans
-
- SilverLounger
- Posts: 1866
- Joined: 25 Jan 2010, 14:00
- Location: Conroe, Texas
Re: Sorting rows by alphabetizing column E
Works great thank you Hans