I have code that sorts from A-Z based on Column D's values. After the Sort completes the cursor parks itself at B4. Works fine, but instead of parking at B4 I'd like to have the cursor scroll to the Value that was in Column D for the Row that was selected when the Sort macro was run.
Here's my current code...
Make sense?
Here's my current code...
Code:
Sub SortBySub()
Application.ScreenUpdating = False
ActiveWindow.SmallScroll Down:=-189
Rows("5:2000").Select
ActiveWindow.ScrollRow = 1426
ActiveWindow.ScrollRow = 4
ActiveWorkbook.Worksheets("Calendar").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Calendar").Sort.SortFields.Add Key:=Range( _
"D5:D2000"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
xlSortNormal
ActiveWorkbook.Worksheets("Calendar").Sort.SortFields.Add Key:=Range( _
"C5:C2000"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
xlSortNormal
ActiveWorkbook.Worksheets("Calendar").Sort.SortFields.Add Key:=Range( _
"B5:B2000"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("Calendar").Sort
.SetRange Range("A5:BQ2000")
.Header = xlGuess
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Range("B4").Select
Application.ScreenUpdating = True
End Sub
Make sense?