keith05281967
Board Regular
- Joined
- May 6, 2011
- Messages
- 68
Greetings VBA Guru's,
I recorded a macro to select column A, find and delete any duplicates found. Here is the code:
Columns("A:A").Select
ActiveSheet.Range("$A$1:$A$37").RemoveDuplicates Columns:=1, Header:=xlYes
I need the code to tell the user if duplicate rows were found or not. If found, give the user the option to proceed with deleting or not. I'm sure this is accomplished w/ an If stmt, but I don't know how to word it.
The above code was just a first pass. The most important thing is that it "notify" the user of duplicates before taking any action.
thanks so much. I'm using excel 07.
Also can you please use code examples with explanations?
thanks in advance for your help,
Keith
<!-- / message -->
I recorded a macro to select column A, find and delete any duplicates found. Here is the code:
Columns("A:A").Select
ActiveSheet.Range("$A$1:$A$37").RemoveDuplicates Columns:=1, Header:=xlYes
I need the code to tell the user if duplicate rows were found or not. If found, give the user the option to proceed with deleting or not. I'm sure this is accomplished w/ an If stmt, but I don't know how to word it.
The above code was just a first pass. The most important thing is that it "notify" the user of duplicates before taking any action.
thanks so much. I'm using excel 07.
Also can you please use code examples with explanations?
thanks in advance for your help,
Keith
<!-- / message -->