D
David Smith
Hi all,
I'm new to this newsgroup and not sure if it's frowned upon to ask for a
snippet of code in this group - feel free to tell me off if this is the
case.
I have been part of a project at work to convert telephone services at
many (350) sites across Australia from one format to another. As part
of this our team has produced a list of phone numbers for each site. We
now have 350 separate CSV files (one list for each site), which we'd
like to convert into one big Excel file (one list for the whole project).
These 350 files are nothing but a list of numbers in column A. Some of
them have 10 or 12 rows of data, some have 2,500 or 3,000. File names
are based on the name of the site (eg Brisbane.csv, Sydney.csv) and are
not 'standardised' (ie they're not file1.csv, file2.csv, ..., file350.csv).
Would any of you gurus be kind enough to dash off some code which could
do the following?
<beginning of loop>
- open first CSV file
- go to the last cell in column A which contains data
- select all cells from that cell back up to cell A1
- copy and paste contents into workbook "national.xls" starting at the
first blank cell in that book
- close the CSV file
- open the next CSV file and repeat the process
<end of loop>
Thanks in advance,
David Smith
I'm new to this newsgroup and not sure if it's frowned upon to ask for a
snippet of code in this group - feel free to tell me off if this is the
case.
I have been part of a project at work to convert telephone services at
many (350) sites across Australia from one format to another. As part
of this our team has produced a list of phone numbers for each site. We
now have 350 separate CSV files (one list for each site), which we'd
like to convert into one big Excel file (one list for the whole project).
These 350 files are nothing but a list of numbers in column A. Some of
them have 10 or 12 rows of data, some have 2,500 or 3,000. File names
are based on the name of the site (eg Brisbane.csv, Sydney.csv) and are
not 'standardised' (ie they're not file1.csv, file2.csv, ..., file350.csv).
Would any of you gurus be kind enough to dash off some code which could
do the following?
<beginning of loop>
- open first CSV file
- go to the last cell in column A which contains data
- select all cells from that cell back up to cell A1
- copy and paste contents into workbook "national.xls" starting at the
first blank cell in that book
- close the CSV file
- open the next CSV file and repeat the process
<end of loop>
Thanks in advance,
David Smith
so i just want to check that you want the