+ Reply to Thread
Results 1 to 5 of 5

Converting excel spreadsheet to text file

  1. #1
    Registered User
    Join Date
    09-12-2008
    Location
    Canada
    Posts
    5

    Converting excel spreadsheet to text file

    Hi everyone,

    I have a spreadsheet with columns of data. I'm wondering if there's a way to convert this to a text file and preserve all the nicely formatted columns. I've tried saving as a text file (tab-delimited or unicode) but the resulting text file is shifted all over the place.

    I'm also wondering if it's possible to do this without using "tab" characters but rather "spaces".

    Thanks for any insight and help,
    czhe

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi

    You could save the file as Formatted Text (Space Delimited) - these are .prn files.

    I'm not sure what you mean by 'nicely formatted columns' - text files won't retain any formatting (bold, colors, fonts, underlinings etc).

    Richard

  3. #3
    Registered User
    Join Date
    09-12-2008
    Location
    Canada
    Posts
    5
    Hi,

    Thanks for the reply.

    What I mean by nicely formatted columns is that when it gets converted to text, I want the spacing and columns to be preserved. If I just save as a text file from Excel, the columns are no longer preserved and it looks like a mess.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Unless your spacing in Excel is wholely due to blank spaces before and after the text, you will lose the formatting. Trying to line things up would be very difficult. Why do you want to save as a text file?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Try to think of text files as saving just the values - text files don't contain any bells & whistles such as formatting. To preserve formatting you need to save the file as an xls file. So like ChemistB I would ask why you want to save it as a text file?

+ 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. Excel 2007 error when adding custom help file to user defined function
    By sabotuer99 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2009, 01:10 AM
  2. Excel keeps converting to DATE, when I want text
    By Psy6 in forum Excel General
    Replies: 10
    Last Post: 05-27-2008, 03:17 AM
  3. Replies: 4
    Last Post: 07-18-2007, 12:14 PM
  4. Replies: 0
    Last Post: 06-25-2007, 11:56 AM
  5. Opening a text file into Excel
    By Gazzr in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-11-2007, 09:45 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