NorthbyNorthwest
Board Regular
- Joined
- Oct 27, 2013
- Messages
- 147
- Office Version
- 365
Hi, hope someone can help me. I have a very large data set which includes duplicate rows. I need to delete these rows. Normally, I delete based on a column. However, in this case I want to delete the row based on every column containing duplicate information. I tried code below and got runtime error 5, invalid procedure call or argument. Is my data set too large? Or is there something wrong with procedure? How can achieve my goal? Thanks.
<o
></o
>[/FONT][/COLOR][/SIZE]
Code:
[SIZE=3][COLOR=#000000][FONT=Calibri]Sub RemoveDupRows()<o:p></o:p>[/FONT][/COLOR][/SIZE]
[SIZE=3][COLOR=#000000][FONT=Calibri] Sheets("output").Range("$A$1:$A$662592").RemoveDuplicatesColumns:=Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15), Header:=xlNo<o:p></o:p>[/FONT][/COLOR][/SIZE]
[SIZE=3][COLOR=#000000][FONT=Calibri]End Sub
Last edited by a moderator: