Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to automatically adjust the height of the row attached to text box,
based on the length or amount of data in the text box. Any ideas? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Not sure what you mean, but does this work ?
Range("A1").Rows.AutoFit NickHK "Troubled User" wrote in message ... I need to automatically adjust the height of the row attached to text box, based on the length or amount of data in the text box. Any ideas? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
AutoFit will size to the max cell size, but does not include a text box that
is bound to a cell within the range. Thanks. "NickHK" wrote: Not sure what you mean, but does this work ? Range("A1").Rows.AutoFit NickHK "Troubled User" wrote in message ... I need to automatically adjust the height of the row attached to text box, based on the length or amount of data in the text box. Any ideas? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What do you mean by "adjust the height of the row attached to text box" then
? If you mean adjust to the height of THAT cell, then maybe: Private Sub CommandButton1_Click() Dim DestCell As Range Dim TestCell As Range 'Cell linked to Textbox Set DestCell = Range("A1") 'Where it will not interfere with current column widths/row heights Set TestCell = Range("U30") With TestCell .ColumnWidth = DestCell.ColumnWidth .Value = DestCell.Value .Rows.AutoFit DestCell.RowHeight = .RowHeight End With End Sub NickHL "Troubled User" wrote in message ... AutoFit will size to the max cell size, but does not include a text box that is bound to a cell within the range. Thanks. "NickHK" wrote: Not sure what you mean, but does this work ? Range("A1").Rows.AutoFit NickHK "Troubled User" wrote in message ... I need to automatically adjust the height of the row attached to text box, based on the length or amount of data in the text box. Any ideas? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Summing a column based on the length of text in a cell in anothercolumn | Excel Worksheet Functions | |||
Sizing Autoshapes based on text length | Excel Programming | |||
How do I "conditionally" change font size based on text length? | Excel Programming | |||
Macro or Function to make text size to suite text Length? | Excel Discussion (Misc queries) | |||
The text length versus the cell size... | Excel Programming |