If you want to split the data into multiple columns before you send it to
Excel, you could do that in a query, and export the query.
For example, to generate a column named C1 from the first 2 characters in a
field named f, type an expression like this into the Field row in query
design
C1: Trim(Left([f],2))
Then in the next column of the Field row:
C2: Trim(Mid([f],3,12))
And so on.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
<(E-Mail Removed)> wrote in message
news:0b5e552b-34a1-4eba-afe6-(E-Mail Removed)...
>I have text file with about 300 lines items that are not delimited but
> the width of each columns is fixed and do have the value. For example,
> cell 1 is char(1-2), cell 2 is char(2-14)....
> I want to be able to copy the whole thing in Excel, run a macro that
> split the string into the different cell.
> I can manually do it using the Text to Column function and setting the
> width one by one but it's time consuming since this import is occuring
> everyday.
>
> Can you help?
>
> Thanks,