Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save erajanraja24/d9dadf1a00cb4d6d10c8265fec846260 to your computer and use it in GitHub Desktop.
Save erajanraja24/d9dadf1a00cb4d6d10c8265fec846260 to your computer and use it in GitHub Desktop.
VBA to remove duplicates in a given Range
Sub check()
Set Rng = ThisWorkbook.Sheets(1).Range("A1:C12")
Rng.RemoveDuplicates Columns:=Array(1, 2, 3), Header:=xlYes
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment