Hi all
I have copied & adapted the text of the macro recorder to sort by colour but receive the above error.
The code blows out on SortOn which is the last line of the procedure... so far.
See attached file.
Any help is much appreciated
Thanks & regards
Mark
I have copied & adapted the text of the macro recorder to sort by colour but receive the above error.
The code blows out on SortOn which is the last line of the procedure... so far.
Code:
Range("MyRange").Sort Key1:=Range("D" & newRow), SortOn:=xlSortOnCellColor, Order:=xlAscending, DataOption:=xlSortNormal
See attached file.
Any help is much appreciated
Thanks & regards
Mark