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.
 

Some videos you may like

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

mohadin

Well-known Member
Joined
Mar 22, 2015
Messages
1,091
Office Version
  1. 2013
Platform
  1. Windows
Hi
And welcome
Put this code in the sheet code
VBA Code:
Private Sub Worksheet_Calculate()
 Cells.EntireRow.AutoFit
End Sub
 

sykes

Well-known Member
Joined
May 1, 2002
Messages
1,785
Office Version
  1. 365
Platform
  1. Windows
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.
 

chocojunior

New Member
Joined
Jan 20, 2021
Messages
4
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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.
 

chocojunior

New Member
Joined
Jan 20, 2021
Messages
4
Office Version
  1. 365
  2. 2010
Platform
  1. Windows

ADVERTISEMENT

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.🥺
 

mohadin

Well-known Member
Joined
Mar 22, 2015
Messages
1,091
Office Version
  1. 2013
Platform
  1. Windows
All right
Try this in Thisworkbook code
VBA Code:
Private Sub Workbook_SheetCalculate(ByVal Sh As Object)
 Cells.EntireRow.AutoFit
End Sub
 
Solution

Watch MrExcel Video

Forum statistics

Threads
1,127,522
Messages
5,625,305
Members
416,089
Latest member
Captkraken33

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
Top