Results 1 to 2 of 2

Thread: Maintaining the same fixed width layout for columns for delimited text
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Oct 2013
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Maintaining the same fixed width layout for columns for delimited text

    Hello,

    I have approximately 250 .txt files that I need to put into excel that are fixed width delimited text. I have attempted to use the import text wizard, which works smoothly, except every time I open a new file I have to re-align the fix width spacing of the columns which takes about a minute for each file

    I found a potential work around:
    Saving a fixed-width import layout | Wizard of Excel

    but it's still not too effective because all of my text files are large and this makes the excel very slow because of too many equations.

    What would be the best way to automate this process to get all of these .txt files into excel? I'd be willing to click through the import text wizard for all 250 files if I can maintain the same spacing in the "data preview screen" or potentially run a macro which could do the same thing? I would just have to count the number of spaces between inputs once.

    Thanks!
    -Rob

  2. #2
    MrExcel MVP
    Moderator
    Andrew Poulsom's Avatar
    Join Date
    Jul 2002
    Posts
    73,092
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    3 Thread(s)

    Default Re: Maintaining the same fixed width layout for columns for delimited text

    Welcome to MrExcel.

    Maybe this will help you:

    Merge all CSV or TXT files in a folder in one worksheet
    Microsoft MVP - Excel

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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