I want to delete duplicate entries from each column, I am successful in doing it for one column C but I want to do it from A to Column Z. I have tried to change myCol to variable long & wrote column number but it is giving me an error (so that I can run number loop). Here is my code:
Sub test()
Dim myCol As String
myCol = "C"
With Sheets("Union")
lastrow = .Range(myCol & .Rows.Count).End(xlUp).Row
.Range(myCol & "1:" & myCol & lastrow).RemoveDuplicates Columns:=1, Header:=xlYes
End With
End Sub
Range("A1:O23")or [2.] From each column individually? If it is "1" then the complete row will be matched with the other rows...