ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Column limit for exporting (https://www.excelbanter.com/excel-discussion-misc-queries/11593-column-limit-exporting.html)

FinChase

Column limit for exporting
 
Is there a limit to the number of columns that can be exported to a fixed
format text (*.prn) file? I am trying to export a large data file that
contains 75 columns and approximately 17,000 rows from Excel to a fixed
format text file for use with another application. I've found that column 39
on wraps around to the end of the rows for the first 38 columns. When I try
and import this data to another application half the data is in the wrong
columns now. I've tried using a MS-Dos text file and it does not maintain
the spacing necessary. I am also using Courier New as my font and I have set
the column width of every column before exporting it.

PegL

I believe there is a limit to the line length (width or # bytes per line) of
a .prn file. I can't remember what that number is, but I've encountered it.

"FinChase" wrote:

Is there a limit to the number of columns that can be exported to a fixed
format text (*.prn) file? I am trying to export a large data file that
contains 75 columns and approximately 17,000 rows from Excel to a fixed
format text file for use with another application. I've found that column 39
on wraps around to the end of the rows for the first 38 columns. When I try
and import this data to another application half the data is in the wrong
columns now. I've tried using a MS-Dos text file and it does not maintain
the spacing necessary. I am also using Courier New as my font and I have set
the column width of every column before exporting it.


Dave Peterson

Prn files get 240 characters per line.

Here's a couple of ideas from a previous post about fixed width files:
http://groups.google.co.uk/groups?th...48D8%40msn.com



FinChase wrote:

Is there a limit to the number of columns that can be exported to a fixed
format text (*.prn) file? I am trying to export a large data file that
contains 75 columns and approximately 17,000 rows from Excel to a fixed
format text file for use with another application. I've found that column 39
on wraps around to the end of the rows for the first 38 columns. When I try
and import this data to another application half the data is in the wrong
columns now. I've tried using a MS-Dos text file and it does not maintain
the spacing necessary. I am also using Courier New as my font and I have set
the column width of every column before exporting it.


--

Dave Peterson


All times are GMT +1. The time now is 09:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com