Last active
June 2, 2016 18:20
-
-
Save erajanraja24/24e27fda604f2b32f8f0cd3fd3ec4067 to your computer and use it in GitHub Desktop.
VBA to remove duplicates in an unknown range for specified columns
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub check() | |
Set Rng = ThisWorkbook.Sheets(1).UsedRange | |
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