ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   trying to automatic fit large amount of text in cell (https://www.excelbanter.com/excel-discussion-misc-queries/176298-trying-automatic-fit-large-amount-text-cell.html)

rp2chil

trying to automatic fit large amount of text in cell
 
Hi, I've researched the board and I can't find the correct answer.

We have several users updating a spreadsheet. In one of the cells users
have to enter text that could be up to 1000 characters. Is there a way that
when a user either pastes data or enter text that the columns or rows expand
to automatically fit the text.

Thanks so much

Using Excel 2003 and not a programmer :-). Tnx much.

HKaplan

trying to automatic fit large amount of text in cell
 
On Feb 11, 10:00*am, rp2chil
wrote:
Hi, I've researched the board and I can't find the correct answer.

We have several users updating a spreadsheet. *In one of the cells users
have to enter text that could be up to 1000 characters. *Is there a way that
when a user either pastes data or enter text that the columns or rows expand
to automatically fit the text.

Thanks so much

Using Excel 2003 and not a programmer :-). *Tnx much.


Right click the sheet tab, then select View Code.
In the right pane, select Worksheet in the first drop down and Change
in the second.
Paste this code.

Private Sub Worksheet_Change(ByVal Target As Range)

Cells.Select
Cells.EntireColumn.AutoFit
Target.Select

End Sub

rp2chil

trying to automatic fit large amount of text in cell
 
awesome, thanks So much...


All times are GMT +1. The time now is 01:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com