Adjust Cell Width in Visual Basic

G

Guest

I am trying to adjust the width of an individual cell (not the entire column)
in Excel using visual basic. I have been able to do it for the whole column
(below), but want to know if it is possible to do it for just one cell.

Sub FormatRange()
Workbooks("book1").Worksheets("Sheet1").Columns("A").ColumnWidth = 5.1
End Sub
 
D

Don Guillett

when you find out how to widen one cell. without center across or merge
cells, pls let us all know.
 
G

Gord Dibben

Can you do it manually?

NO.

A cell is part of a column and the width is a property of the column.


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top