dominikapabis
New Member
- Joined
- Feb 9, 2016
- Messages
- 4
Hello,
I need help writing a VBA macro that will search for duplicates in a column and add a unique identifier. So that I can mark some, not all for deletion further on in my macro ( I already have that part written out)
For Example:
[TABLE="width: 300"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]AAA
[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]AAA[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]BBB[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 300"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]AAA
[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]AAA #1[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]BBB #2[/TD]
[/TR]
</tbody>[/TABLE]
Here's the catch...
After the rest of my code runs, I need to remove the remaining unique identifiers in the column also in a macro.
I would greatly appreciate any help!
Thanks!
I need help writing a VBA macro that will search for duplicates in a column and add a unique identifier. So that I can mark some, not all for deletion further on in my macro ( I already have that part written out)
For Example:
[TABLE="width: 300"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]AAA
[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]AAA[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]BBB[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 300"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]AAA
[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]AAA #1[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]BBB #2[/TD]
[/TR]
</tbody>[/TABLE]
Here's the catch...
After the rest of my code runs, I need to remove the remaining unique identifiers in the column also in a macro.
I would greatly appreciate any help!
Thanks!