Macro to Auto Fit Merge Row Height

earthworm

Well-known Member
Joined
May 19, 2009
Messages
759
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
I have a merged row . One of the row height is extended to the fullest . but due to size of the content , I have to merge the second row so that I can also increase height of second row to some height to display the content completely .

I need a macro that can auto fit the row height based on content . Please note that the merge rows will always be 2 rows . however this will repeat below to some other rows

example

Book3
CD
2Row 1MERGED
3Row 2
4Row 3
5Row 4
6Row 5
7Row 6MERGED
8Row 7
9Row 8
10Row 9
11Row 10
12Row 11
13Row 12MERGED
14Row 13
15Row 14
16Row 15MERGED
17Row 16
Sheet1
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Is there a reason that the rows are Merged besides needing the height? If not, you can simply format Column to Auto-Fit Row Height instead of Merging.
 
Upvote 0
Is there a reason that the rows are Merged besides needing the height? If not, you can simply format Column to Auto-Fit Row Height instead of Merging.
Yes the content in cell is allign in such wa way that I cannot make it fit in one row.
It's requirement
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,812
Members
449,048
Latest member
greyangel23

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