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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Column Width Problem

Status
Not open for further replies.

ietprofessional

Programmer
Apr 1, 2004
267
US
I'm currently trying to export some table data to an Excel file. The problem is that the data columns in the Excel sheet is not expanded to the width of the text.

Can anyone suggest anything?

Thank You!
 
well, if you are using the excel object model then you could use the AutoFit method e.g.
Code:
Columns("A:C").AutoFit
or you can set the column width by:
Code:
Columns("A:C").ColumnWidth = 14.14

same is true for rows.

see the help file for more info.
cheers,
dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top