+ Reply to Thread
Results 1 to 16 of 16

Wrap Text: Autofit rows that are merged across

  1. #1
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Wrap Text: Autofit rows that are merged across

    Hi All,

    I was wondering if anyone knew of a way to wrap text by using autofit on a merged range. In the data I'm working with, beginning at row 16 (the header is 14 rows followed by an empty row), columns F:I are merged. When I run this:

    Please Login or Register  to view this content.
    The code executes but nothing happens. Any text that should be displayed after a column is resized is still not visible. My question is, would it be possible to to apply autofit to this range, or to make the merged row only one cell the same width as the merged range.

    The reason for working with merged cells is that I'm attempting to create a comparison report between two reports that are exported out of a database in excel format, and the intent is to compare these two reports side by side on the same screen while preserving the original format. By resizing two columns this can be acheived, but the all text in the string still needs to be visible.

    Any help would be greatly appreciated, thanks!

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Wrap Text: Autofit rows that are merged across

    Try

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: Wrap Text: Autofit rows that are merged across

    Hello Ab33, thanks for the reply!

    When I run it that way, it resizes the rows, but the wrapped text is still not visible.

    Thanks

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Wrap Text: Autofit rows that are merged across

    May be do another one for columns

    Please Login or Register  to view this content.
    Last edited by AB33; 08-08-2014 at 08:58 AM.

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Wrap Text: Autofit rows that are merged across

    hi Pierce Quality, can you post a sample file?

  6. #6
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: Wrap Text: Autofit rows that are merged across

    That executes, but does not appear to do anything.

  7. #7
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: Wrap Text: Autofit rows that are merged across

    Here is a sample book:

    Thanks!
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Wrap Text: Autofit rows that are merged across

    Just remind us, what are you trying to do?

  9. #9
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: Wrap Text: Autofit rows that are merged across

    Quote Originally Posted by AB33 View Post
    Just remind us, what are you trying to do?
    Attempting to wrap text in a range that is merged across then auto fit the rows. Hopefully its possible!

  10. #10
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Wrap Text: Autofit rows that are merged across

    Pierce,
    I am not sure I understand your request.
    For e.g, you have rows 16-24 wrapped and merged. It might be easier to record your actions and see what the record macro shows.

  11. #11
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: Wrap Text: Autofit rows that are merged across

    Quote Originally Posted by AB33 View Post
    Pierce,
    I am not sure I understand your request.
    For e.g, you have rows 16-24 wrapped and merged. It might be easier to record your actions and see what the record macro shows.
    In the attached workbook, the text to be wrapped is not displayed. Although autofit does resize the rows somewhat, is does not resize enough to be effective. This may be because of the merged cells.

    Thanks
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Wrap Text: Autofit rows that are merged across

    Do you mean when you enlarge the text(To size 18) the text does not show(The full text is not shown)?

  13. #13
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Wrap Text: Autofit rows that are merged across

    Please Login or Register  to view this content.

  14. #14
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Wrap Text: Autofit rows that are merged across

    please check attachment
    Attached Files Attached Files

  15. #15
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: Wrap Text: Autofit rows that are merged across

    Quote Originally Posted by AB33 View Post
    Do you mean when you enlarge the text(To size 18) the text does not show(The full text is not shown)?
    Quote Originally Posted by AB33 View Post
    Please Login or Register  to view this content.
    AB33,
    The font change was not an issue.

    Autofit would not work on when the cells were merged.

  16. #16
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: Wrap Text: Autofit rows that are merged across

    Watersev,

    This appears to do the trick, thank you very much!

    Marking this as solved, thanks everyone!

+ 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. [SOLVED] Wrap Text without Cells AutoFit(ting)?
    By EnigmaMatter in forum Excel General
    Replies: 4
    Last Post: 03-06-2014, 09:54 AM
  2. [SOLVED] Wrap text and row autofit not working in Excel
    By dclink9 in forum Excel General
    Replies: 1
    Last Post: 06-22-2006, 10:15 PM
  3. [SOLVED] Autofit with Merged Cells/Wrap Text Macro Problem
    By elfmajesty in forum Excel General
    Replies: 3
    Last Post: 05-25-2006, 01:40 PM
  4. [SOLVED] rows of text in merged cell with wrap text
    By mark in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2006, 01:45 AM
  5. [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

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