Importing many text files into one excel worksheet - how to?
Oh, and I forgot to mention (not that it's a big thing). Rather than
a new workbook it should be a "pre-defined" sheet on a predefined
workbook. That way I can have other sheets in the same workbook with
pivot tables etc to extract whatever data I require.
Thanks again,
Scott.
On Aug 27, 11:06 pm, scott wrote:
Hi Ron,
The indiv. files should be below one another. The example you posted
seems like it would do the trick if it pastes them one below the
other.
Thanks for replying so fast,
Scott.
On Aug 27, 10:24 pm, "Ron de Bruin" wrote:
Hi Scott
Below each other or next to each other ?
We can change this one to copy in the same sheethttp://www.rondebruin.nl/txtcsv.htm
--
Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm
"scott" wrote in oglegroups.com...
Hi all,
I have many identical format comma delimited text files in a folder,
named as follows: B1010607.txt. The user needs to be prompted which
files to import, and then the macro should import them one after
another into the same worksheet.
I'm struggling with it. I have a macro to import all text files in a
folder, but the problem is that the first 2 digits are either B1 or B2
- and must be distinct in the worksheet. Maybe if the B1 files went
to one worksheet, the B2 ones went to another? Another idea - maybe
if upon importing, the B1 or B2 could somehow be obtained and pasted
in as the contents of the first column?
Each sheet contains many rows of identical format data.
Any ideas anyone? I'm REALLY struggling but it's really really
important.
Thanks in advance for any responses.
Scott.
|