LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default VBA - import txt file using space separator

From my experience, you need to have a schema.ini file just because your
text file does not contain the standard value separator which is ";".

Then the text driver will use Your schema.ini file instead of what is
defined in your registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engi nes\Text

here is what I have with Windows XP Pro:
Format\Delimited(;)


I tried to insert Format=Delimited( )into my connexion string as you
did:
CxnFile.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & PathFile1 & ";" & _
"Extended Properties=""TEXT;HDR=NO;Format=Delimited(
);FIL=text;"""

but this raises an error: -2147217904

So let me know if you found, but programmatically creating a temporary
schame.ini file is not so difficult.

Regards,

Phil

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use 100 separator inspite of 1000 separator in excel Montu Excel Worksheet Functions 11 May 2nd 23 11:41 AM
Can I import text file of cash flow to excel file then use formula Bumpa Excel Discussion (Misc queries) 2 May 28th 10 04:22 PM
Importing txt-file with "." (= dot) as decimal separator doesn't w MarttiH Excel Discussion (Misc queries) 2 October 24th 08 01:13 PM
Import from Access, space problem Beginner Excel Discussion (Misc queries) 0 June 10th 08 01:56 PM
Save a csv or text file in Excel 2000 with choice of separator bazza1 Excel Discussion (Misc queries) 0 September 8th 06 04:12 PM


All times are GMT +1. The time now is 11:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"