LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Saving an EXCEL spreadsheet in fixed length format

Save from a previous post:

There's a limit of 240 characters per line when you save as .prn files.

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(" ",5),5) & LEFT(B1&REPT(" ",4),4) & TEXT(C1,"000,000.00")

(You'll have to modify it to match what you want.)

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

=========

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

PrakashK wrote:

I am saving an excel spreadsheet in .PRN format

Is there a limit on the row size of the PRN file. I am not able to safe the
complete file

The data is gettigng cut off

--
PrakashK


--

Dave Peterson
 
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
Saving Excel spreadsheet in txt format tcmh Excel Discussion (Misc queries) 5 May 3rd 09 05:50 PM
How do I export an Excel spreadsheet with fixed length rows? Paul from St.Paul Excel Discussion (Misc queries) 5 July 14th 05 04:55 AM
Saving XL ranges as Fixed Field Length Text - Leading spaces AS Excel Programming 2 March 17th 05 08:33 PM
how to extract data in .txt format from the excel sheet in a fixed length ascii forma pramod_kmr Excel Programming 1 March 3rd 04 11:54 AM
2 Qs: grab net page, and import as fixed length format Keith R[_3_] Excel Programming 2 December 12th 03 08:18 PM


All times are GMT +1. The time now is 10:19 PM.

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

About Us

"It's about Microsoft Excel"