How can I get the cells to expand with the size of a texbox. I am entering text and the Activex texbox is expanding with Multiple lines accordingly to the text, but after a period goes over other fields, How can I get the field cells to expand?
Perhaps something like this:-
Code:Private Sub TextBox1_Change() With TextBox1 .AutoSize = True .MultiLine = True .WordWrap = True .TopLeftCell.RowHeight = TextBox1.Height .Width = 100 'Set as required End With End Sub
That does seam to work, any other suggestion? Anyone?My textbox is in row 19 D to I
will this code work in the same way?
I imagine so, Just alter the textbox width to an appropriate size (Like 400)
Its not the prettiest but it seems to work !!
See if this example works for you !!!
See if this example works for you !!!
https://app.box.com/s/2ff3wmqw6n1kv40wjd0jzolzzkzn5x7t
Row 31 between D and HWhat cell (address) is textbox2 on ???