Skip to content

Instantly share code, notes, and snippets.

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