ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   automatically changing font size (https://www.excelbanter.com/excel-programming/320987-automatically-changing-font-size.html)

Jared

automatically changing font size
 
I have a worksheet where people may enter text of various lengths. Is there a
way I can reduce the font size if the text entered is too long to be viewed
entirely in the default font size? I do not want to change the size of the
cell, or change the font size for all cells.

Ben

automatically changing font size
 
turn on autosize
in VBA
range("a1").shrinktofit = true
this will keep the default font size but shrink if it is too long


"Jared" wrote:

I have a worksheet where people may enter text of various lengths. Is there a
way I can reduce the font size if the text entered is too long to be viewed
entirely in the default font size? I do not want to change the size of the
cell, or change the font size for all cells.



All times are GMT +1. The time now is 12:42 PM.

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