+ Reply to Thread
Results 1 to 3 of 3

ListObjects

  1. #1
    Registered User
    Join Date
    11-14-2008
    Location
    Tampa
    MS-Off Ver
    Professional Plus 2007
    Posts
    30

    ListObjects

    I wrote some code that with the click of a button called "FILTER" it converts several ranges into independent ListObjects with this code:
    Please Login or Register  to view this content.
    and then automatically filters out zeros and blanks based on data from one column called "Qty" using this code:
    Please Login or Register  to view this content.
    Then with the click of another button, I reset the ListObject back to a range with this code:
    Please Login or Register  to view this content.
    The above works fabulously. Here's the problem.

    I have quite a few columns in the table and I wish to print everything out on one sheet. That's easy enough. I just format several column widths to equal 8. The problem comes in, when the range turns into a ListObject, these columns widen to fit the text in the column headers. I set the cell format for "wrap text", but that doesn't cure it. How do I keep the column width from widening after converting a range into a ListObject?
    Last edited by Leith Ross; 04-24-2009 at 11:42 AM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: ListObjects

    Hello costadina,

    This code will make all the text in the cells of the ListObjects wrap around.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    11-14-2008
    Location
    Tampa
    MS-Off Ver
    Professional Plus 2007
    Posts
    30

    Re: ListObjects

    Hi Leith

    Good idea.
    You would think that would work but it doesn't. It failed to wrap the text.

    I even tried

    Please Login or Register  to view this content.
    It narrowed some columns, but the columns with the long text string in the header row did not wrap. I love Excel

+ 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