I am getting the error "sort method of range class failed" on the following code:
After a button is clicked on a userform its sorting a sheet on a particular row.
It used to work but now its not.
Any ideas how I correct this:
After a button is clicked on a userform its sorting a sheet on a particular row.
It used to work but now its not.
Any ideas how I correct this:
Code:
If Not Intersect(Target, Range("F:F")) Is Nothing Then
Range("F1").Sort Key1:=Range("F2"), _
Order1:=xlAscending, Header:=xlYes, _
OrderCustom:=1, MatchCase:=False, _
Orientation:=xlTopToBottom
End If