equal width cells per column

anilsanda

New Member
Joined
Jul 24, 2007
Messages
3
hi,
i have an excel sheet ,in which all the cells of a column must of be equal length .so that, when i save this excel sheet as .txt file all the text in each cell of a column must be properly aligned..
so pls some one help me by quoting some sample code to make length of each cell of a column equal(equal width)
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,105
Office Version
  1. 365
I'm not sure I understand your question. Save for merged cells, aren't all of the cells in a column always the same width? Or, if you mean that you want the width of the column to be wide enough to accomodate the longest cell's contents (without wordwrap), how about autofitting the column width (select the column and go to format --> column --> autofit selection)?
 

Gerald Higgins

Well-known Member
Joined
Mar 26, 2007
Messages
9,258
An even easier way is to simply select all the relevant columns and double click the column width cursor
 

ADAMC

Well-known Member
Joined
Mar 20, 2007
Messages
1,169
Office Version
  1. 2013
Platform
  1. Windows
Or you could highlight the columns right click and select column width and choose your own width.
 

Forum statistics

Threads
1,181,658
Messages
5,931,271
Members
436,785
Latest member
KingGideon

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
Top