+ Reply to Thread
Results 1 to 3 of 3

column width, differences between methods

  1. #1
    Forum Contributor
    Join Date
    06-29-2005
    Posts
    201

    column width, differences between methods

    Hi all,
    Yesterday I asked a question if, and how, I can adjust the width of multiple columns to their contents, and then add just a little more width for easier readability.
    The code Ollie came up with (thanks again Ollie !) was:
    Please Login or Register  to view this content.
    This works fine, with 1 exception. If, in a large spreadsheet, i start eg in a name column and that name is shorter than the other entries, the new width of the column is relative to this smaller cell.
    When I doubble click between the columns (even if I am in the same (short) cell, the column is adjusted to the longest cell in that column.

    Is it possible to add this to the code mentioned above?

    Thanks Hein
    Last edited by Hein; 01-10-2013 at 07:50 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: column width, differences between methods

    For the whole usedrange.
    If there is nothing in the entirecolumn, the columnwidth will not changed.
    All the other columns = autofit + 5.
    Please Login or Register  to view this content.
    Kind regards, Harry.

  3. #3
    Forum Contributor
    Join Date
    06-29-2005
    Posts
    201

    Re: column width, differences between methods

    Harry,

    Sorry for my delayed answer, but I am glad you responded.

    Your solution is exactly what I was looking for. Thank you for that
    This will save me a lot of tedious work, and time

    Again, thanks

    Hein

+ 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