I had found some brilliant code at: http://www.mrexcel.com/forum/showthread.php?t=396069
The problem with this code is that I end up with hundreds of worksheets.
I'm wondering if it could be modified according to my need or if there is an easier way to accomplish my need. Rather than using a key value to trigger the creation of a new worksheet, I want to trigger a new worksheet based upon the number of rows HOWEVER I don't want to split my key value between multiple worksheets.
For example, I have a csv file with about 200k rows of records with account numbers. 30k rows are account 123456789 and 30k rows are account 987654321 and and 25k rows are account 123455555. Since the rows are sorted I would want the 30k account 123456789 and the 25k 123455555 on sheet1 and the 30k account 987654321 on sheet2. My total number of worksheets will be around 3 or 4.
I hope that makes sense and that you can help me. Thank you...JD
The problem with this code is that I end up with hundreds of worksheets.
I'm wondering if it could be modified according to my need or if there is an easier way to accomplish my need. Rather than using a key value to trigger the creation of a new worksheet, I want to trigger a new worksheet based upon the number of rows HOWEVER I don't want to split my key value between multiple worksheets.
For example, I have a csv file with about 200k rows of records with account numbers. 30k rows are account 123456789 and 30k rows are account 987654321 and and 25k rows are account 123455555. Since the rows are sorted I would want the 30k account 123456789 and the 25k 123455555 on sheet1 and the 30k account 987654321 on sheet2. My total number of worksheets will be around 3 or 4.
I hope that makes sense and that you can help me. Thank you...JD