A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
- Save your file as .xlsm
- ALT+F11
- Locate your Workbook name in Project Explorer Window
- Right click on your workbook name > Insert > Module
- Copy paste the below code in this
- ALT+F8 to display Macro Window
- Run your Macro from here
- If Sheet1 is not the sheet, replace it appropriately.
Sub DuplicateDelete()
ThisWorkbook.Sheets("Sheet1").UsedRange.RemoveDuplicates Columns:=Array(1, 2), Header:=xlYes
End Sub