Cindi did you say your data was already sorted? If so, try using this code instead:
Try inserting that code following the steps you had done originally:
I copied your code from here, and went back to my spreadsheet
Clicked on Macros
Type the macro name CompareAndChange
Click Create
in the next window it shows
Sub CompareAndChange ()
End Sub
with the cursor between the two lines
I pasted your code where the cursor is, and Save (macro enabled workbook)
If your sheet is already sorted, that should work... It seems that the error comes from making the macro sort, which shouldn't be happening as it works ok on my computer but idk... maybe this way will work.
Best of lucks and get back if you still have issues please.
If you are going to be doing this on the same workbook you had been working so far, make sure to delete any other version of this macro that's already there please.
Bookmarks