+ Reply to Thread
Results 1 to 7 of 7

VBA Autosize merged cells larger than max row height.

  1. #1
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    VBA Autosize merged cells larger than max row height.

    This is not a question, this is a solution to an issue I thought may be useful to anyone else trying to solve the issue with auto-size on merged cells. Normally, when you need to autosize a merged cell, the simple method is to unmerge the cell, autosize on the contents of the one cell and then merge the cell range again. However, if you have other merged cells or large value entries in other columns, this may cause issues. The main issue I'm solving here though is how to autosize a merged cell with a contents that autosizes to larger than the maximum 409.5 points.

    In the example below, the sheet to be adjusted has large text entries in column F, each merged cell range is 10 rows deep. Hope this helps anyone having a similar problem.

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,803

    Re: Autosize merged cells larger than max row height.

    You've marked this as solved - is it?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Autosize merged cells larger than max row height.

    As per the first sentence: This is not a question, this is a solution to an issue I thought may be useful to anyone else trying to solve the issue with auto-size on merged cells.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,803

    Re: Autosize merged cells larger than max row height.

    In that case, it is in the wrong place - it should be in the Tips section. I shall move it for you.

  5. #5
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: VBA Autosize merged cells larger than max row height.

    Ta. Didn't know we had a tips section. Is that new?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,803

    Re: VBA Autosize merged cells larger than max row height.

    No - it has always been there.

  7. #7
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: VBA Autosize merged cells larger than max row height.

    Ah I see, the tips and tricks page is in the off topic section, no wonder I've never noticed it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Autofit row height for merged cells
    By mjmitch in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-13-2018, 08:51 AM
  2. Auto-fit height of merged cells
    By keith2511 in forum Excel General
    Replies: 1
    Last Post: 07-18-2018, 09:40 AM
  3. Autosize Row Height for cells which are linked to other cells
    By Mathewj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2016, 07:14 AM
  4. Replies: 0
    Last Post: 08-01-2015, 12:29 AM
  5. [SOLVED] Autofit Row Height on Merged Cells
    By Dragman in forum Excel General
    Replies: 0
    Last Post: 11-08-2013, 03:16 PM
  6. Autosize only height of comment box relative to height of cell comment
    By Shanthan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2013, 10:25 AM
  7. [SOLVED] Row height and Merged Cells
    By Darin Kramer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-28-2005, 01:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1