+ Reply to Thread
Results 1 to 5 of 5

Autosize merged rows

  1. #1
    Registered User
    Join Date
    09-12-2012
    Location
    Toledo, OH
    MS-Off Ver
    Excel 2010
    Posts
    3

    Autosize merged rows

    Hello out there!

    Thank you for your help in advance.

    I have merged rows that I want to autosize. I've ready what I can find here, but nothing works. One thread said he/she found a solution, but the code was missing.

    Can anyone help me? It's rather urgent.

  2. #2
    Forum Contributor
    Join Date
    05-25-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    194

    Re: Autosize merged rows

    The only solution is to write a piece of code that unmerges/resizes the cells/and then remerges the cells. It's rather complicated depending on the length of your entry and how many cells are merged...

    If the entries are a set size, or you don't mind potentially having additional spacing, you can just set the cells to a default size.

  3. #3
    Registered User
    Join Date
    09-12-2012
    Location
    Toledo, OH
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Autosize merged rows

    MedPack

    Thanks for your reply. I can't have a default size unfortunately.

    Nor do I know how to write code. I just thought someone might have a macro I could cut and paste.

    Does anyone out there have such a thing?

    Many thanks for any assistance.

  4. #4
    Registered User
    Join Date
    11-05-2008
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    67

    Re: Autosize merged rows

    the basic code to autosize rows is this code
    Please Login or Register  to view this content.
    It will auto fit column A only if you want to add more columns change, then quote inside the brackets to meet your requirements i.e. ("B:K") will do all columns from B through K.

    This code will autosize any cell within the columns, if your merged cell overall is smaller than the combined cells above or below it their auto width takes precedent.

    hope this helps

    Iain

  5. #5
    Registered User
    Join Date
    09-12-2012
    Location
    Toledo, OH
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Autosize merged rows

    sarails:

    Thank you. I am looking for something that autosizes rows; perhaps this could work with rows also.

    I can't require anything to be changed in the macro code to apply it to different cells than those that are specified in the macro. This is a workbook that will be sent out to many others like a form, and they worn't be able to do that.

    Thanks for the help.

    I am beginning to think this is impossible to do in Excel.

    Anyone else have anything?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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