Importing a csv file and need to format the column width

Cory

New Member
Joined
Jul 8, 2002
Messages
2
I've created a csv text file that I'm opening directly into excel. The data is opened into the correct cells and everything looks fine, but for the column width. All of the columns come up in there standard width and I would like them to adjust so all of the text is visible. I'm not that familiar with importing into excel beyond basic formats. Any help is greatly appreciated!!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
On 2002-07-09 10:51, Cory wrote:
I've created a csv text file that I'm opening directly into excel. The data is opened into the correct cells and everything looks fine, but for the column width. All of the columns come up in there standard width and I would like them to adjust so all of the text is visible. I'm not that familiar with importing into excel beyond basic formats. Any help is greatly appreciated!!
Select all the cells in the file (the grey box beside column A and above row 1), and Format|Column|AutoFitSelection.

Hope this helps :)
 
Upvote 0
I'm sure there is a fancier way but what I do is click on the area between column A and row 1 (the little gray box). This highlights the whole worksheet then put your mouse between one of the columns (say between column A & B) and when the mouse pointer turnes to a double arrow double click the mouse. This formats each column to the widest width required for each column.

Hopes this helps!

texasalynn
 
Upvote 0
Thanks for the information. I should have been more informative on my description of the problem. I was hoping to include sometype of formatting record in the text csv file so the users wouldn't have to do any of the formatting manually. When they open the csv file I want it to automatically display correctly. Again, any help is greatly appreciated!
 
Upvote 0
On 2002-07-09 13:47, Cory wrote:
Thanks for the information. I should have been more informative on my description of the problem. I was hoping to include sometype of formatting record in the text csv file so the users wouldn't have to do any of the formatting manually. When they open the csv file I want it to automatically display correctly. Again, any help is greatly appreciated!
Sorry :(, can't be done within the CSV file. You could accomplish this via a macro, but you'd have to invoke the macro each time you open the file (instead of simply opening the file).
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,383
Members
448,955
Latest member
BatCoder

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top