bpgolferguy
Active Member
- Joined
- Mar 1, 2009
- Messages
- 469
Hi, I have this code inside a button on workbook:
It works okay, except it doesn't sort the range I've chosen on sheet "Overall". Anyone know why? Thanks!
Code:
Private Sub CommandButton5_Click()
Range("C5:F300").Copy
Sheets("Overall").Range("B3").PasteSpecial Paste:=xlValues
With Sheets("TourSBAmMen")
Application.CutCopyMode = False
End With
Sheets("Overall").Range("B3:E300").Sort Key1:=Range("D3"), Order1:=xlDescending, Key2:=Range("E3"), Order2:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("A2").Select
End Sub
It works okay, except it doesn't sort the range I've chosen on sheet "Overall". Anyone know why? Thanks!