My question is almost identical to one posted earlier.
Here is the message posted in December the only change is that i wanting to import my text file in ACCESS not excel.
Can someone tell me an easy way to do this.
Thank you
StephDN (MIS) Dec 31, 2002
Hi!
I'm trying to import a rather complex text file into an Excel spreadsheet (simple enough). I can use the import wizard and set up the columns where I need them (not based on tabs, commas, etc.), but I need it be automated (no wizard).
I need to select text in the text file based on row positioning and import the text into the columns. For example: I need the column A to contain the first 7 characters of the the text file, Column B to contain the next 10 characters, Column C to contain next 2 characters, and so on. I can't use the regular delimited method because each line in the text file is different (and not based on a character). I just need to be able to select the text from the text file based on character positioning, and import that into each consecutive column - and then do this for each line in the text file.
I've searched and searched for examples, but can only find examples that seperate the text file by commas, spaces, or colons. PLEASE HELP!!
Thanks in advance!
Here is the message posted in December the only change is that i wanting to import my text file in ACCESS not excel.
Can someone tell me an easy way to do this.
Thank you
StephDN (MIS) Dec 31, 2002
Hi!
I'm trying to import a rather complex text file into an Excel spreadsheet (simple enough). I can use the import wizard and set up the columns where I need them (not based on tabs, commas, etc.), but I need it be automated (no wizard).
I need to select text in the text file based on row positioning and import the text into the columns. For example: I need the column A to contain the first 7 characters of the the text file, Column B to contain the next 10 characters, Column C to contain next 2 characters, and so on. I can't use the regular delimited method because each line in the text file is different (and not based on a character). I just need to be able to select the text from the text file based on character positioning, and import that into each consecutive column - and then do this for each line in the text file.
I've searched and searched for examples, but can only find examples that seperate the text file by commas, spaces, or colons. PLEASE HELP!!
Thanks in advance!