Hi All,
I have managed to do some code that will find a specific value in a column and loop through until it finds all instances of that value then copy it / them to a specific TAB, but it is really limiting, as I want the user to be able to use unique identifiers in column K (I can post the code if you like, but I don't think I am on the right track).
What I would love to be able to do is loop through a column (K), search for the next unique value and copy them to a new TAB.
For example, loop through Sheet 1 Column K until a value is found (can be any combination of a number followed by a letter - example "1A" or "24F" or "4E"). Once found, create a new TAB (using a template) and copy the row from Sheet 1 to Row 10 on the New Tab, then rename the newly created TAB the same name as value found (in this instance "1A"). Continue the loop to see if another "1A" is found, if so, copy that line to Row 11 of the new "1A" TAB. Continue through column K until no more 1A's are found.
Continue the loop until the the next Unique value is found (lets say "4E") - repeat above.
Repeat above until all unique values have been found and then quit.
I hope this makes sense?
If any one can help, I would be greatly appreciative.
Cheers
WT
I have managed to do some code that will find a specific value in a column and loop through until it finds all instances of that value then copy it / them to a specific TAB, but it is really limiting, as I want the user to be able to use unique identifiers in column K (I can post the code if you like, but I don't think I am on the right track).
What I would love to be able to do is loop through a column (K), search for the next unique value and copy them to a new TAB.
For example, loop through Sheet 1 Column K until a value is found (can be any combination of a number followed by a letter - example "1A" or "24F" or "4E"). Once found, create a new TAB (using a template) and copy the row from Sheet 1 to Row 10 on the New Tab, then rename the newly created TAB the same name as value found (in this instance "1A"). Continue the loop to see if another "1A" is found, if so, copy that line to Row 11 of the new "1A" TAB. Continue through column K until no more 1A's are found.
Continue the loop until the the next Unique value is found (lets say "4E") - repeat above.
Repeat above until all unique values have been found and then quit.
I hope this makes sense?
If any one can help, I would be greatly appreciative.
Cheers
WT