Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AutoFit in a macro

Status
Not open for further replies.

dokken

Programmer
Mar 7, 2001
61
US
I would like to adjust the columns width to fit the data width. I have a heading at the top of the spreadsheet. How do I adjust the width to just the data columns and exclude the heading?
I am using: Columns("I:I").EntireColumn.AutoFit
Also if I set the width of a column, is it the number of characters?

Does anybody know how I do this?

Paul
 
Put a paragraph return in your heading so that it fits the desired width by hitting Alt-Enter in the middle of the text.
techsupportgirl@home.com
Brainbench MVP for Microsoft Word
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top