ShelleyBelly
New Member
- Joined
- Mar 2, 2011
- Messages
- 44
I'm new to VBA but have been browsing the web for sometime now trying to find a macro that can do a simple remove duplicates function on an active selection of cells.
for example:
1--2--3
1--2--3
2--4--5
5--3--2
4--1--3
5--3--2
should become
1--2--3
2--4--5
5--3--2
4--1--3
I have tried the VBA in
http://www.mrexcel.com/forum/showthread.php?t=321140&highlight=basic+remove+duplicates+vba
but this only seems to remove one row at a time so if there are 3 identical rows the script will have to be run twice.
I would also like it to work for any sized array.
I may have dropped the ball as i'm sure someone must have done this before so if you know where please do redirect me.
Many Thanks,
Tom
for example:
1--2--3
1--2--3
2--4--5
5--3--2
4--1--3
5--3--2
should become
1--2--3
2--4--5
5--3--2
4--1--3
I have tried the VBA in
http://www.mrexcel.com/forum/showthread.php?t=321140&highlight=basic+remove+duplicates+vba
but this only seems to remove one row at a time so if there are 3 identical rows the script will have to be run twice.
I would also like it to work for any sized array.
I may have dropped the ball as i'm sure someone must have done this before so if you know where please do redirect me.
Many Thanks,
Tom