Would anybody know why an excel macro would work for some users but not for others.
It works no problem for 95% of users (including myself) but the other 5% get the Run Time Error.
To be clear everyone is using the same spreadsheet from the same location.
I've stepped into the macro for a user who was getting the error and it errors on a sort command:
ActiveWorkbook.Worksheets("DATA").Sort.SortFields.Add2 Key:=Range _
("AH6:AH155"), SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:= _
xlSortNormal
Many thanks
It works no problem for 95% of users (including myself) but the other 5% get the Run Time Error.
To be clear everyone is using the same spreadsheet from the same location.
I've stepped into the macro for a user who was getting the error and it errors on a sort command:
ActiveWorkbook.Worksheets("DATA").Sort.SortFields.Add2 Key:=Range _
("AH6:AH155"), SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:= _
xlSortNormal
Many thanks