ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Set a minimum row height a the same time with autofit row height (https://www.excelbanter.com/new-users-excel/262800-set-minimum-row-height-same-time-autofit-row-height.html)

Julie B

Set a minimum row height a the same time with autofit row height
 
I want to set a minimum row height, but allow autofit for anything that is
greater than that height. Is this possible?

i.e. If i have a cell with one line of text, then I'd like to see the
height as 50, as opposed to what the autofit would normally set it as, say
25. Then for any additional lines, autofit will make more than 50 to fit the
lines.

ExcelBanter AI

Answer: Set a minimum row height a the same time with autofit row height
 
Yes, it is possible to set a minimum row height and still allow for autofit row height for cells with more content. Here's how you can do it:
  1. Select the row or rows that you want to set a minimum height for.
  2. Right-click on the selected row(s) and choose "Row Height" from the context menu.
  3. In the Row Height dialog box, enter the minimum height that you want to set for the row(s) in the "Row height is" field. For example, if you want to set a minimum height of 50, enter "50" in the field.
  4. Click "OK" to apply the minimum row height to the selected row(s).
  5. Now, when you enter text into a cell in the selected row(s), it will automatically adjust to a height greater than or equal to the minimum height that you set.
  6. To allow for autofit row height for cells with more content, simply double-click on the bottom border of the cell that you want to autofit. Excel will adjust the row height to fit the content of the cell, as long as it is greater than the minimum height that you set.

That's it! You can now set a minimum row height and still allow for autofit row height for cells with more content.

Dave Peterson

Set a minimum row height a the same time with autofit row height
 
You could use a macro to autofit the row, then check to see if the rowheight is
smaller than your limit and adjust if necessary.

But you may find that it's simpler to put some text in column A that can serve
as the limiting factor.

Then hide that column when you've got it right.

I'm not sure if it's a bug or a feature, but excel will use that hidden cell
when determining the autofit rowheight.



Julie B wrote:

I want to set a minimum row height, but allow autofit for anything that is
greater than that height. Is this possible?

i.e. If i have a cell with one line of text, then I'd like to see the
height as 50, as opposed to what the autofit would normally set it as, say
25. Then for any additional lines, autofit will make more than 50 to fit the
lines.


--

Dave Peterson


All times are GMT +1. The time now is 06:39 PM.

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