+ Reply to Thread
Results 1 to 4 of 4

VBA to auto fit row height

  1. #1
    Registered User
    Join Date
    12-04-2012
    Location
    Solon, OH
    MS-Off Ver
    Excel 2010
    Posts
    15

    VBA to auto fit row height

    I found this code on the forum to auto fit the row height using a group of merged cells. It works, but I want to try and modify it.

    In this scenario on sheets 1, 2, and 3, D3:D6 are merged and A3:A6 are merged. Both contain variable amounts of text.

    The range of merged cells the code looks at is D3:D6. Can make it also look at A3:A6 and use the cells that would give the larger row height?

    I also need to automatically adjust the page breaks so they do not fall in a merged cell.

    If anyone has a better formatting idea to do what I am doing let me hear it.

    I am new to VBA and appreciate any assistance.

    Please Login or Register  to view this content.
    Last edited by bmcglone; 12-12-2012 at 08:02 PM.

  2. #2
    Registered User
    Join Date
    12-04-2012
    Location
    Solon, OH
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: VBA to auto fit row height

    Here is the file.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-04-2012
    Location
    Solon, OH
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: VBA to auto fit row height

    Anyone have an idea?

  4. #4
    Registered User
    Join Date
    12-04-2012
    Location
    Solon, OH
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: VBA to auto fit row height

    Got this figured out. Works well.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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