Visual Basic in Excel, Resize the Cell automatically

  • Thread starter Thread starter Pam
  • Start date Start date
P

Pam

How do I automatically resize a cell in Visual Basic depending on the amount
of text I enter?
 
Pam,

It depends on what you want to do. Like this

Range("A1").Value = "antidisestablishmentarianism"
With Range("A1")
.WrapText = True
End With

or like this

Range("A1").Value = "antidisestablishmentarianism"
Columns("A:A").EntireColumn.AutoFit

Mike
 
Back
Top