I have a large spreadsheet that has duplicate entries. Normally, I could use the DeleteDuplicateRows() sub that I got from here (Thanks!), but in this case the dups are in strikethrough font. I wrote a small sub:
Sub TestingStrikethroughDelete()
Dim c As Range
For Each c In Selection
If c.Font.Strikethrough = True Then c.EntireRow.Delete
Next c
End Sub
It works fine if I run it four or five times, but for some reason it doesn't get all of the rows. It'll drop about half each time. What have I missed?
-Dave the Perpetually Confused
Sub TestingStrikethroughDelete()
Dim c As Range
For Each c In Selection
If c.Font.Strikethrough = True Then c.EntireRow.Delete
Next c
End Sub
It works fine if I run it four or five times, but for some reason it doesn't get all of the rows. It'll drop about half each time. What have I missed?
-Dave the Perpetually Confused