Row height

chocojunior

New Member
Joined
Jan 20, 2021
Messages
4
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Hi im new on excel. i have a question. Currently, i have a planner table so i insert some formula inside the cell to copy paste the text from other sheets. however, my problem is, the cell is not automatically adjust the row height (it works manually) after the calculation had been made (the text updated) . Anyone know how to solve this? so i dont have to adjust the row height manually after updating the planner.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi
And welcome
Put this code in the sheet code
VBA Code:
Private Sub Worksheet_Calculate()
 Cells.EntireRow.AutoFit
End Sub
 
Upvote 0
Hi, and Welcome to Mr. Excel!
Try selecting the cells which need to automatically adjust (including any future ones which you want to adjust themselves when you put data into them), right-click the range, select "Format cells" from the drop-down, select the "Alignment" tab at the top of the dialog box, and tick (check) the "Wrap text" box.
 
Upvote 0
Hi
And welcome
Put this code in the sheet code
VBA Code:
Private Sub Worksheet_Calculate()
Cells.EntireRow.AutoFit
End Sub
hi thank you. sorry if i make you confuse with my question, but my issue is like this :
I have several sheets (sheet 1 is the main planner that build up from the others sheets) whenever i type something on the other sheets it will update the sheet 1 automatically but the row height doesnt seem works, so i need to click it manually again to adjust it.
i had tried the code but it didnt work as well.
 
Upvote 0
Hi, and Welcome to Mr. Excel!
Try selecting the cells which need to automatically adjust (including any future ones which you want to adjust themselves when you put data into them), right-click the range, select "Format cells" from the drop-down, select the "Alignment" tab at the top of the dialog box, and tick (check) the "Wrap text" box.
hi thank you. sorry if i make you confuse with my question, but my issue is like this :
I have several sheets (sheet 1 is the main planner that build up from the others sheets) whenever i type something on the other sheets it will update the sheet 1 automatically but the row height doesnt seem works even i already format all the cells, so i need to click it manually again to adjust it.
Anyways, thank you for your advice. if you know the solution just hmu.?
 
Upvote 0
All right
Try this in Thisworkbook code
VBA Code:
Private Sub Workbook_SheetCalculate(ByVal Sh As Object)
 Cells.EntireRow.AutoFit
End Sub
 
Upvote 0
Solution

Forum statistics

Threads
1,213,557
Messages
6,114,293
Members
448,564
Latest member
ED38

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top