Consulting

Results 1 to 5 of 5

Thread: Macro to make sure all text in cell is visible?

  1. #1
    VBAX Mentor clhare's Avatar
    Joined
    Mar 2005
    Posts
    470
    Location

    Macro to make sure all text in cell is visible?

    I have a spreadsheet with over 12,000 rows that will not autofit correctly. Most rows appear fine, but there are some rows throughout the spreadsheet that only show one line of text when there is actually 2 or more lines.

    I've spent hours looking on the Internet yesterday trying to find a solution and am still stumped. There are no merged cells in this table and "wrap text" is selected in all columns. At one point I thought I might have got all the cells to show text by deselecting wrap text and then selecting it again, but while it corrects most rows, it doesn't correct all of them. I also then entered a new row and found it did not show all text.

    Is there a way to set all rows correctly by macro so all text appears in each cell? I need help and I don't have a clue how to fix this problem!

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try selecting all of the rows and Format>Row>AutoFit
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Mentor clhare's Avatar
    Joined
    Mar 2005
    Posts
    470
    Location
    I did, and it does not work--there are still rows that only show one line yet contain two or three.

  4. #4
    VBAX Mentor clhare's Avatar
    Joined
    Mar 2005
    Posts
    470
    Location
    The only thing I can do that seems to correct the problem is to scroll down all 12,000+ rows, find the ones that are not showing everything, and insert a return after the text in one of the colums. Is that the only thing I can do? It will take forever!!

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    You could try this.

    Select the column
    Menu data>Text To Columns
    Hit the Finish button.

    It might clear it.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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