bluepenink
Well-known Member
- Joined
- Dec 21, 2010
- Messages
- 585
hello all
having some problem for some odd reason with my sort button macro.
i recently added 20 extra (blank) rows to the worksheet, and the macro for some odd reason is not sorting the data? ive been staring at my screen for an hour, no idea whats happening. can someone pls advise
having some problem for some odd reason with my sort button macro.
i recently added 20 extra (blank) rows to the worksheet, and the macro for some odd reason is not sorting the data? ive been staring at my screen for an hour, no idea whats happening. can someone pls advise
Code:
Sub KPI()
Range("C11:R" & Range("C11").End(xlDown).Row).Sort Key1:=Range("E12"), Order1:=xlDescending, _
Header:=xlYes, OrderCustom:=1, MatchCase:=False, _
Orientation:=xlTopToBottom, DataOption1:=xlSortNormal
Range("I7") = "Sorted by: Send Report"
End Sub