LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Problem encountered when saving worksheet as a text file

Hi,
not sure if anyone can help on this.
I have a worksheet that contains a header row.
When saving the data in this worksheet as a tab delimited file, excel would
normally add the delimiters to equal the longest record (row of data).
E.g.
Col1 Col2 Col3 Col4 Col5 Col6 Col7 Col8
a b c d e f
a b c d e f
a b c d e f
a b c d e f
a b c d e f

Saving as a Tab Delimited or Comma Delimited file would result in the
following .txt file (I have used comma delimited format as this is easier to
demostrate the problem!)

Col1,Col2,Col3,Col4,Col5,Col6,Col7,Col8
a,b,c,d,e,f,,
a,b,c,d,e,f,,
a,b,c,d,e,f,,
a,b,c,d,e,f,,
a,b,c,d,e,f,,

This works whether there is a header row or not. If row 3 is the longest
record, then the delimiters will be added to equal the longest row for the
rows before and after the longest record.

However, the problem I have encountered is this only works for the first 15
rows.
From row 16, no delimiters are added after the last cell with any data in
for that row.

Col1,Col2,Col3,Col4,Col5,Col6,Col7,Col8
a,b,c,d,e,f,,
a,b,c,d,e,f,,
a,b,c,d,e,f,,
a,b,c,d,e,f,,
a,b,c,d,e,f,,
a,b,c,d,e,f,,
a,b,c,d,e,f,,
a,b,c,d,e,f,,
a,b,c,d,e,f,,
a,b,c,d,e,f,,
a,b,c,d,e,f,,
a,b,c,d,e,f,,
a,b,c,d,e,f,,
a,b,c,d,e,f,,
a,b,c,d,e,f,,
a,b,c,d,e,f
a,b,c,d,e,f
a,b,c,d,e,f
a,b,c,d,e,f

This does not happen when saving the file as part of a VB macro.

Can anyone explain why this is happening and whether anything can be done
about it. I need the delimiters for all rows in the file as it is being
loaded into an application that requires a fixed length record.

Thanks
 
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
Excel 2007 encountered a problem and needs to close donh Excel Discussion (Misc queries) 0 November 28th 07 06:10 PM
Microsoft Excel encountered a problem and needs to close tiller420 Excel Discussion (Misc queries) 0 February 22nd 07 06:46 PM
Saving a worksheet as . prn text file - record length dochoa Excel Discussion (Misc queries) 1 October 11th 06 07:47 PM
Problem encountered Pat Setting up and Configuration of Excel 1 March 3rd 06 03:01 PM
Problem encountered when cutting and pasting limws1 Excel Discussion (Misc queries) 2 July 18th 05 10:45 AM


All times are GMT +1. The time now is 04:30 AM.

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"