I know this has been visited before...
Excel 2003 macro:
I routinely extract a LOT of information that requires deduplication. I get tired of walking through the same steps every time so I recorded them.
Sub DeDuplicate()
Range("A1").Select
Range("A1:C1103").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Range( _
"D1"), Unique:=True
Columns("A:C").Select
Range("C1").Activate
Selection.Delete Shift:=xlToLeft
End Sub
BUT! The range isn't a fixed value. So how do I convert Range("A1:C1103") for when the last cell is not c1103?
TIA
Kat
Excel 2003 macro:
I routinely extract a LOT of information that requires deduplication. I get tired of walking through the same steps every time so I recorded them.
Sub DeDuplicate()
Range("A1").Select
Range("A1:C1103").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Range( _
"D1"), Unique:=True
Columns("A:C").Select
Range("C1").Activate
Selection.Delete Shift:=xlToLeft
End Sub
BUT! The range isn't a fixed value. So how do I convert Range("A1:C1103") for when the last cell is not c1103?
TIA
Kat