tourless
Board Regular
- Joined
- Feb 8, 2007
- Messages
- 144
- Office Version
- 365
- Platform
- Windows
Hi Folks,
I'm copying a variable range of data which may or may not contain a repeating list of values in column A. In the case there IS a repeating list, I would like to keep only the first 'set' and delete all rows below. Turning this...
Prod1
Prod2
Prod3
Prod4
Prod5
Prod1
Prod2
Prod3
Prod4
Prod5
Prod1
Prod2
Prod3
Prod4
Prod5
into this...
Prod1
Prod2
Prod3
Prod4
Prod5
I think it could be as simple as holding the first instance of the first value (which will be in A2 due to header row), and looking for the second instance of that value and deleting it and everything below it. I need to add this functionality to a macro routine.
I'm copying a variable range of data which may or may not contain a repeating list of values in column A. In the case there IS a repeating list, I would like to keep only the first 'set' and delete all rows below. Turning this...
Prod1
Prod2
Prod3
Prod4
Prod5
Prod1
Prod2
Prod3
Prod4
Prod5
Prod1
Prod2
Prod3
Prod4
Prod5
into this...
Prod1
Prod2
Prod3
Prod4
Prod5
I think it could be as simple as holding the first instance of the first value (which will be in A2 due to header row), and looking for the second instance of that value and deleting it and everything below it. I need to add this functionality to a macro routine.