#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Saving to .txt

I'd like to be able to copy excel to .txt and keep columns aligned. I can
Save As... to .txt and the columns are somewhat aligned but not totally. Is
there a way to do this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Saving to .txt

Like a fixed width file?

Try saving it as a "formatted text (space delimited)(*.prn)" file.

and ...

Saved from a previous post:

(.prn files will wrap after 240 characters)

You have a few choices (try against a copy of your worksheet):

I'd either concatenate the cell values into another column:

=LEFT(A1&REPT(" ",20),20) & LEFT(B1&REPT(" ",10),10) & TEXT(C1,"000,000.00")

Then I'd copy and paste to notepad and save from there. Once I figured out that
ugly formula, I kept it and just unhide that column when I wanted to export the
data.

If that doesn't work for you, maybe you could do it with a macro.

Here's a link that provides a macro:
http://google.com/groups?threadm=015...0a% 40phx.gbl



grok wrote:

I'd like to be able to copy excel to .txt and keep columns aligned. I can
Save As... to .txt and the columns are somewhat aligned but not totally. Is
there a way to do this?


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
automation autosave .xls as .txt jim sturtz Excel Worksheet Functions 5 October 24th 06 12:09 AM
Slow saving when adding VBA forms [email protected] Excel Discussion (Misc queries) 2 October 11th 06 10:44 AM
Saving worksheet as webpage Aramis Excel Discussion (Misc queries) 1 January 9th 06 10:26 PM
Saving Excel 2003 file in .txt format mikejfox99 Excel Discussion (Misc queries) 2 August 5th 05 05:12 PM
How do I stop Excel 2000 from saving file history from file that . Cathy Excel Discussion (Misc queries) 0 March 29th 05 03:27 PM


All times are GMT +1. The time now is 07:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"