+ Reply to Thread
Results 1 to 7 of 7

Change width of a dropdown list

  1. #1
    Forum Contributor
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    MS 365
    Posts
    188

    Change width of a dropdown list

    Hi all,

    I am trying to change the width of one specific column where i have a drop down list and i want all the text to be readable when making the choice in the list.

    I have tried the solution by contexture (http://www.contextures.com/xlDataVal08.html#Wider)
    Please Login or Register  to view this content.
    I want the width of the column to change when i click the arrow of the drop down list so when people are about to make the choice in the list it appears wider and therefor increase the readability. Not just when clicking a cell in that column.

    Is this possible in some way? Hope someone could help me out!

    /Masun

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Change width of a dropdown list

    May be check whether this suggestion is useful.

    Autofit the DV List Source Data Column and get the Column width from it. On selection event set that column width to that column and reset it to the default column with after on change


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    MS 365
    Posts
    188

    Re: Change width of a dropdown list

    Thanks for the suggestion. Maybe thats a good idea, you are very often spot on, the trouble here, for me that is, i am not able to produce a vba code of your suggestion cause i really dont have that knowledge. But its important for me that the column, and therefor the drop down list, resizes when clicking on the drop down list arrow, not just when clicking on the cell. I dont understand if it will end up in that way with your suggestion?

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Change width of a dropdown list

    I will provide the vba if you attach a sample workbook with DV List.

  5. #5
    Forum Contributor
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    MS 365
    Posts
    188

    Re: Change width of a dropdown list

    That sounds fair. ;-)

    Seriously...thank you very much!
    Attached Files Attached Files

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Change width of a dropdown list

    I tried to make it but not sure how you like it

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    MS 365
    Posts
    188

    Re: Change width of a dropdown list

    Hi,

    I am getting some compilation error. I guess it has to do with an other drop down list related code im using from contexture. Could you please take a look?

    The other macro makes it possible to choose multiple items from the drop down list. In this case colum nr 6...
    Attached Files Attached Files

+ 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. Change Language in SAP through dropdown list - VBA
    By svsavage in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-03-2014, 11:08 PM
  2. How do I change the width of the data validation list box?
    By Davy Lawson in forum Excel General
    Replies: 6
    Last Post: 12-09-2013, 03:27 PM
  3. Dropdown List - Change Display
    By ewainscott in forum Excel General
    Replies: 2
    Last Post: 05-25-2007, 09:49 AM
  4. Dropdown list width changing code
    By XXL User in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-26-2006, 04:15 PM
  5. [SOLVED] set dropdown list width in validation
    By x taol in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-20-2006, 12:10 AM

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