I have a macro that deletes repetitive rows. this one shows for Column E, if I want to change to look for items in column C I need to manually go to the macro editior and change it...I wanted a input box to show asking which column, then it would change the column letter in the macro accordingly....hope i made sense, please let me know if you have a solution...
=Sub DELETE_ADDRESSES()
For MY_ROWS = Range("E65536").End(xlUp).Row To 2 Step -1
If Range("E" & MY_ROWS).Value = Range("E" & MY_ROWS - 1).Value Then
Rows(MY_ROWS - 1).Delete
End If
Next MY_ROWS
End Sub
=Sub DELETE_ADDRESSES()
For MY_ROWS = Range("E65536").End(xlUp).Row To 2 Step -1
If Range("E" & MY_ROWS).Value = Range("E" & MY_ROWS - 1).Value Then
Rows(MY_ROWS - 1).Delete
End If
Next MY_ROWS
End Sub