Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old June 7th 05, 06:36 PM
 
Posts: n/a
Default Excel - CSV Format and column width


I am using CSV format in Excel and need to be able to define different
column widths. Is there no way to do this ?

If there isnt a way, is there any other text file format I can use to
store this information in ?

Kevin.


  #2   Report Post  
Old June 7th 05, 07:05 PM
Dave Peterson
 
Posts: n/a
Default

Comma separated values files usually contain fields that vary in length (between
records). The comma is the delimited that tells the program reading the file
what goes in each field.

If you want fixed width fields (like for a mainframe application????), you may
be able to just adjust the columnwidths and do File|saveAs (and choose
"formatted text (space delimited) (*.prn)" in the "save as type".

Saving a .csv file with fixed length fields seems kind of unusual to me.

wrote:

I am using CSV format in Excel and need to be able to define different
column widths. Is there no way to do this ?

If there isnt a way, is there any other text file format I can use to
store this information in ?

Kevin.


--

Dave Peterson
  #3   Report Post  
Old June 7th 05, 11:44 PM
[email protected]
 
Posts: n/a
Default


CSV file - Thats just what I thought, but its not the way Excel treats
it. No matter where the comma is placed, all the columns are of equal
length.

Dave Peterson wrote:
Comma separated values files usually contain fields that vary in length (between
records). The comma is the delimited that tells the program reading the file
what goes in each field.

If you want fixed width fields (like for a mainframe application????), you may
be able to just adjust the columnwidths and do File|saveAs (and choose
"formatted text (space delimited) (*.prn)" in the "save as type".

Saving a .csv file with fixed length fields seems kind of unusual to me.


  #5   Report Post  
Old June 8th 05, 06:58 PM
[email protected]
 
Posts: n/a
Default

Thats correct DAve. In Excel its always the same length but in Notepad
it shows just fine.

Dave Peterson wrote:
Is the data in each record (for the same field) always the same length?

If you open the .csv file using Notepad, does it look ok there?



wrote:

CSV file - Thats just what I thought, but its not the way Excel treats
it. No matter where the comma is placed, all the columns are of equal
length.




  #7   Report Post  
Old June 9th 05, 03:56 PM
[email protected]
 
Posts: n/a
Default


Definitely - my whole point of performing this exercise is to
automating sending a report - which is currently manual - via a CSV
file. If I have to re-format the file and send it to everyone, it
defeats the main purpose of this exercise.

Thanks for all your help.
Kevin.

Dave Peterson wrote:
So maybe just widening the columns after you open the .csv file in excel would
be sufficient?


  #8   Report Post  
Old June 9th 05, 07:40 PM
Dave Peterson
 
Posts: n/a
Default

You may want to share the file as a .txt file.

And give them a workbook that contains a macro that imports that .txt file. You
could add headers/filters/page layout/pivottables/charts and graphs and other
stuff.

Send out the .txt file whenever you want. But include instructions to open the
workbook that contains the macro and run that macro to import the data.

If you add enough nice stuff to the macro (not just formatting), the end users
may even like it better.

wrote:

Definitely - my whole point of performing this exercise is to
automating sending a report - which is currently manual - via a CSV
file. If I have to re-format the file and send it to everyone, it
defeats the main purpose of this exercise.

Thanks for all your help.
Kevin.

Dave Peterson wrote:
So maybe just widening the columns after you open the .csv file in excel would
be sufficient?


--

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
Format Excel column to notify with a reminder L Mieth Excel Worksheet Functions 2 June 8th 05 01:53 PM
Format Excel column to notify with a reminder? L Mieth Excel Discussion (Misc queries) 0 June 3rd 05 01:05 PM
How to Format Excel Sheet ToShowRowNumbers but not the column alph Debie Schilling Excel Discussion (Misc queries) 1 May 13th 05 10:21 PM
Column format when merging Excel data to Word labels Red Excel Discussion (Misc queries) 1 April 6th 05 03:40 AM
Excel's column width format box rly2rys New Users to Excel 2 December 15th 04 04:17 AM


All times are GMT +1. The time now is 06:26 AM.

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

About Us

"It's about Microsoft Excel"

 

Copyright © 2017