Sub RemoveDuplicate()
'START of confirmation message box'
response = MsgBox("Start Remove Duplicate?", vbYesNo)
If response = vbNo Then
MsgBox ("Macro Canceled!")
Exit Sub
End If
'END of confirmation message box'
Cells.Select
ActiveSheet.Range("A:D").RemoveDuplicates Columns:=Array(1, 2, 3), Header:=xlYes
'START MSG'
MsgBox "Duplicate Removed!"
Exit Sub
'End MSG'
End Sub
[COLOR=#333333]
ActiveSheet.Range("A:D").RemoveDuplicates _
Columns:=[/COLOR]Array(Columns("A").Column, Columns("B").Column, Columns("C").Column)[COLOR=#333333], Header:=xlYes[/COLOR]
Why don't you want to use 1,2,3?
It may be so:
Code:[COLOR=#333333] ActiveSheet.Range("A:D").RemoveDuplicates _ Columns:=[/COLOR]Array(Columns("A").Column, Columns("B").Column, Columns("C").Column)[COLOR=#333333], Header:=xlYes[/COLOR]
Well, there you have the alternative, I hope it's what you need.