+ Reply to Thread
Results 1 to 5 of 5

Workbooks.OpenText parses out spaces?

  1. #1
    Valued Forum Contributor
    Join Date
    11-15-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    538

    Workbooks.OpenText parses out spaces?

    Go to any directory where you have write access (say, something besides root).
    I'm going to assume that's c:\ABC, so modify ABC below to your own directory name. Go
    dir c:\users > foo.txt

    Now do this - immediate window
    Please Login or Register  to view this content.
    A4 gets "Directory" (no trailing spaces)
    B4 gets "of c:\" (no leading spaces)
    My question is, what happened to the space between the word "Directory" and "of" ??
    I presume that this is going to happen with the fixed width text to column command too.
    I could understand it being eaten if my text-to-column processing was delimited, but this is fixed width.

    AFAICT it doesn't lose meaningful characters; only spaces between words. Is this absurdity documented?

    ------------------
    P.S. I am having to log in to xlforum way too much. It's as though I time out after some number of minutes. I do always bang the Remember Me box. Windows 7 / current Firefox

    When this happens I also get an immediate error message if I was simply hitting F5 to refresh my subscription list, even AFTER entering credentials:
    "Invalid Redirect URL (http://www.excelforum.com/subscription.php?folderid=0)"
    Chip, if you can read this, you're STILL making the world a better place with your immeasurably valuable gifts. Every week, you continue to help me (and untold numbers of others) tremendously. Practically no alternative outlets can match your effectiveness, even over the vast number of topics you demystify and empower usage of. You were, and still are, amazing.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,374

    Re: Workbooks.OpenText parses out spaces?

    I am on Windows 10 Firefox and can stay logged in permanently - are you allowing the browser to accept cookies from the EF site?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Valued Forum Contributor
    Join Date
    11-15-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    538

    Re: Workbooks.OpenText parses out spaces?

    Well I hit the jackpot. Lovely to see you again. In Firefox I block Third-party tracking cookies and have "Standard content blocking" set. Could that possibly be in play? "Balanced for protection and performance. Allows some trackers so websites function properly." If xlforum uses tracking then maybe...

    (Note, as to the error message, it only strikes once; then when I reenter the subscriptions URL it works. But I'm having to do 3 page loads when all I was doing was hitting F5.)

    Did you try my VBA problem scenario? It's real quick and easy, for anyone.
    Last edited by Oppressed1; 05-27-2019 at 08:15 AM. Reason: (parenthetical addition)

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Workbooks.OpenText parses out spaces?


    Attach your text file at least …

  5. #5
    Valued Forum Contributor
    Join Date
    11-15-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    538

    Re: Workbooks.OpenText parses out spaces?

    Someone must know something about this, or perhaps has some collateral observations? I really appreciate you guys spending 20 or 30 seconds to try it for yourselves, by the way. I started to lay out the 4 or 5 minute full blown problem where I discovered it, but spent some time carving it down to something painlessly short because I know your time is valuable.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Workbooks.OpenText Error
    By sperry2565 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-25-2013, 04:03 PM
  2. Method'OpenText' of object 'workbooks' failed
    By jazbath in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2009, 02:41 PM
  3. Workbooks.OpenText Fieldinfo
    By Peterppp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2007, 05:33 AM
  4. Workbooks.Opentext - oldskool '97
    By bradsalmon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-09-2006, 10:50 AM
  5. [SOLVED] Workbooks.OpenText problem in XL2000
    By Mike Iacovou in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-18-2006, 01:15 PM
  6. [SOLVED] Workbooks.OpenText StartRow:=2 Not Skipping Row 1
    By John Saunders in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2005, 07:05 AM
  7. [SOLVED] Workbooks.OpenText does not work on XP. HELP !!!
    By richmarin@earthlink.net in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-31-2005, 11:05 AM
  8. [SOLVED] How to open UTF-8 files with Workbooks.OpenText
    By Mete Kural in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-06-2005, 09:06 PM

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