+ Reply to Thread
Results 1 to 4 of 4

Reading text files into excel with multiple spaces as delimiter

  1. #1
    Registered User
    Join Date
    04-22-2009
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003
    Posts
    17

    Reading text files into excel with multiple spaces as delimiter

    Hi all,
    I am having some trouble importing a text file into excel by code. The Text file is space delimited, BUT there are multiple spaces and the spacing is inconsistent. Is there any way I can import the text file with this impossible layout?

    Cheers

    Robert

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Reading text files into excel with multiple spaces as delimiter

    Hi,
    what happens when you try to import the file choosing " space " as delimiter?

  3. #3
    Registered User
    Join Date
    04-22-2009
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Reading text files into excel with multiple spaces as delimiter

    Well if I do it the hard way (manually open text file through excel) then it imports it correct. But if I do it with code and delimiter = chr(32) then it goes cracy.

    Robert

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Reading text files into excel with multiple spaces as delimiter

    Maybe publishing the code will help ?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1