+ Reply to Thread
Results 1 to 6 of 6

Row height adjusting macro not working on rows with merged cells

  1. #1
    Registered User
    Join Date
    05-26-2015
    Location
    Copenhagen
    MS-Off Ver
    2010
    Posts
    28

    Row height adjusting macro not working on rows with merged cells

    I am using a macro (which works great) to adjust the row height.
    The macro copies a list of row heights written manually in column V1-V42 and copies the heights down, 40 times in this instance.

    The thing that causes issues when running the macro is when excel comes across merged cells. If for example Cells G7 and G8 are merged,
    excel will force the same row height for both rows.
    Is there a way to work around this?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Row height adjusting macro not working on rows with merged cells

    try
    Please Login or Register  to view this content.
    Is not you will need to post example workbook to illustrate the problem
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Row height adjusting macro not working on rows with merged cells

    Just a friendly advice, Merging cells is bad practice and all it does is cause problems..
    Cheers!
    Deep Dave

  4. #4
    Registered User
    Join Date
    05-26-2015
    Location
    Copenhagen
    MS-Off Ver
    2010
    Posts
    28

    Re: Row height adjusting macro not working on rows with merged cells

    Thanks Andy, works perfectly!

    Why are merged cells bad pratice? I mean what is the alternative, if you want a specific cell to have a width or height that is different from the other cells in the row/column?

    Unfortunantly i am forced to use standard practice sheets in my job that i don't really have any influence on. So i have to live with the way they are made.

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Row height adjusting macro not working on rows with merged cells

    using merged cells for the presentation side of things on a sheet is not so much an issue. It's when they are used on the data layer that the problems start.

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Row height adjusting macro not working on rows with merged cells

    Quote Originally Posted by Nbisgaard View Post
    Why are merged cells bad pratice? I mean what is the alternative
    As Andy mentioned, certain sheets/parts of sheet are only there for presentation purpose, and thats where Merged cells arent such a bug issue.

    Talking about alternatives, when you are trying to Merge Columns, you can select the Cells > Ctrl+1 > Alignment Tab > Horizontal > Center Across Selection. This will exactly look like merged cells, eithout them being merged.

    However when trying to merge rows, I am afraid we do not have a workaround..

+ 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. Replies: 2
    Last Post: 03-16-2016, 03:16 PM
  2. [SOLVED] Auto Adjusting Row Height via Macro
    By lucasar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-04-2014, 02:14 PM
  3. [SOLVED] Adjusting Height of Rows (Very Basic)
    By lucasar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2014, 03:21 PM
  4. Auto row height not working for merged cells
    By Turtleman10 in forum Excel General
    Replies: 3
    Last Post: 03-28-2013, 02:23 PM
  5. word wrap in Merged Cells- Adjusting Row Height
    By ordoff73 in forum Excel General
    Replies: 3
    Last Post: 07-16-2008, 08:59 AM
  6. [SOLVED] Row height is not adjusting after activating Merge Cells & Wrap Te
    By MHPDallas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-08-2005, 08:06 PM
  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
  8. [SOLVED] Rows with merged cells are not adjusting even w/ Wrap Text and au.
    By mkern20 in forum Excel General
    Replies: 1
    Last Post: 01-04-2005, 05: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