My sort routine produces errors after being used four times. The procedure has been in use for several years with no problems.
Public Sub SortPlayer4()
Range("A11:F154").Select
Range("F11").Activate
Selection.Sort Key1:=Range("F11"), Order1:=xlDescending,
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
End Sub
The "F" Column is numeric from formulas and does not contain any blanks
The error is fairly consistant. It moves a row midway down the range to the 17th row where it does not belong. Although this isn't always the case.
I have retyped the formula and sometimes this will allow it to work.
I have copied the formula from a backup copy of the program and this sometimes solves the problem. But it always comes back.
I have reinstalled Excel, but still have the problem.
I have the program installed on three computers and they all produce the same error after about 4 repititions.
In all cases the data is constantly being changed via cuting and pasting so I don't think it is in the data itself.
Any ideas will be appreaciated.
Public Sub SortPlayer4()
Range("A11:F154").Select
Range("F11").Activate
Selection.Sort Key1:=Range("F11"), Order1:=xlDescending,
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
End Sub
The "F" Column is numeric from formulas and does not contain any blanks
The error is fairly consistant. It moves a row midway down the range to the 17th row where it does not belong. Although this isn't always the case.
I have retyped the formula and sometimes this will allow it to work.
I have copied the formula from a backup copy of the program and this sometimes solves the problem. But it always comes back.
I have reinstalled Excel, but still have the problem.
I have the program installed on three computers and they all produce the same error after about 4 repititions.
In all cases the data is constantly being changed via cuting and pasting so I don't think it is in the data itself.
Any ideas will be appreaciated.