Maintaining the same fixed width layout for columns for delimited text

rob0762

New Member
Joined
Oct 1, 2013
Messages
1
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
 

Some videos you may like

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Watch MrExcel Video

Forum statistics

Threads
1,102,872
Messages
5,489,430
Members
407,688
Latest member
Jerry1383320

This Week's Hot Topics

  • Timer in VBA - Stop, Start, Pause and Reset
    [CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
  • how to updates multiple rows in muliselect listbox
    Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
  • Delete Row from Table
    I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
  • Assigning to a variable
    I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
  • Way to verify information
    Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
  • Active Cell Address – Inactive Sheet
    How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...
Top