If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Exporting to a .txt file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-28-07, 12:59
katolb90 katolb90 is offline
Registered User
 
Join Date: Feb 2005
Posts: 3
Exporting to a .txt file

Is there any way to export an Excel file to a .txt where all the columns line up (meaning all fields start in the same column). When I save as a .txt it shifts everything over so the fields start in different columns. I am using excel 2003.
Reply With Quote
  #2 (permalink)  
Old 11-29-07, 08:38
MikeTheBike MikeTheBike is offline
Registered User
 
Join Date: Apr 2004
Location: Derbyshire, UK
Posts: 714
Hi

I tried saving as both

Unicode Text (*.txt)
and
Text (tab delimited) (*.txt)

and both seem to retain its column spacing !!?

MTB
Reply With Quote
  #3 (permalink)  
Old 12-02-07, 20:57
themjclare themjclare is offline
Registered User
 
Join Date: Nov 2007
Posts: 2
If you do a 'savesas' and choose the first 'text type' it will create a tab delimited file. This means that at the boundary of each cell it will insert a tab character. When you look at the resulting file using a text viewer (like notepad) these tab characters will make it look like the columns don't line up.

Have you tried to 'saveas' a 'formatted text' file (aka space delimited)? This will give you an output file that makes all the cells in the same column equal in size. It will fill in with extra spaces to make everything line up.

Keep in mind though that if you use a program like notepad to look at your text file you may still see jagged columns. If this is the case then try setting the viewing font in notepad to a fixed width font like Lucida Console.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On