aggiemarine07
New Member
- Joined
- Nov 5, 2013
- Messages
- 46
Howdy!
I am trying to have a sheet auto-sort the data in it. Ive been successful in that it auto-sorts the data however, Ive been unsuccessful in that when I run the macro it puts all the blanks at the top. Can someone help me adjust the below formula to ignore blanks? Thanks!
Below is what I have:
Sub DoSort()
Dim ws As Worksheet
Set ws = Worksheets(2)
ws.Range("C5", Range("C805").End(xlUp)).Select Key1:=ws.Range("C5"), Order1:=xlDescending, _
Key2:=ws.Range("L3"), Order2:=xlDescending, Header:=xlYes
End Sub
I am trying to have a sheet auto-sort the data in it. Ive been successful in that it auto-sorts the data however, Ive been unsuccessful in that when I run the macro it puts all the blanks at the top. Can someone help me adjust the below formula to ignore blanks? Thanks!
Below is what I have:
Sub DoSort()
Dim ws As Worksheet
Set ws = Worksheets(2)
ws.Range("C5", Range("C805").End(xlUp)).Select Key1:=ws.Range("C5"), Order1:=xlDescending, _
Key2:=ws.Range("L3"), Order2:=xlDescending, Header:=xlYes
End Sub