Adjusting row heights on top of autofit

louisli_evo

New Member
Joined
Mar 11, 2020
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have a table that I need help on making a VBA/macro to adjust row heights on top of autofit-ting, autofit is good but it's too tight in viewing.

Mechanism:
I have a few columns of multi-row texts (B, D, and E), I need to:
- upon content change of that row, for example, I updated row 13 and by the time I hit enter or tab, it should start adjusting.
-- alternatively, I think I can run the VBA on demand, which I think it should be easier
- Range: row 2 to row 309
- if this row contains merged cells, skip to next row
- determine which column (B, D or E) on this row has the most lines
- add 25 pixels to the autofitted height


Could anyone shed some light on this issue? Thank you very much.
 
I can see 3 replies to your posts so far (4 with this one)
And that doesn't include my post on the duplicate thread (now locked), where I also said it can't be done.
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,216,100
Messages
6,128,824
Members
449,470
Latest member
Subhash Chand

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