gheyman
Well-known Member
- Joined
- Nov 14, 2005
- Messages
- 2,347
- Office Version
- 365
- Platform
- Windows
I want to delete duplicate rows where there is duplicates in columns B and C. In this example rows 3 and 8 would get deleted.
A B C
1 zxcz 123 1qwe
2 zxcz 123 2qurs
3 zxcz 123 1qwe
4 zxcz 124 1qwe
5 asdf 321 a5664
6 asdf 221 q4664
7 asdf 321 a4578
8 asdf 221 q4664
You can use:
Dim DupLstRw As Long
'last row of CBOM
DupLstRw = Sheet2.Range("A" & Rows.Count).End(xlUp).Row
Thanks for the help
PS the data is not sorted.
A B C
1 zxcz 123 1qwe
2 zxcz 123 2qurs
3 zxcz 123 1qwe
4 zxcz 124 1qwe
5 asdf 321 a5664
6 asdf 221 q4664
7 asdf 321 a4578
8 asdf 221 q4664
You can use:
Dim DupLstRw As Long
'last row of CBOM
DupLstRw = Sheet2.Range("A" & Rows.Count).End(xlUp).Row
Thanks for the help
PS the data is not sorted.