+ Reply to Thread
Results 1 to 5 of 5

ComboBox Autosize Font

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    ComboBox Autosize Font

    Is there a way to automatically change the font size of a ComboBox, so that the selection fits? I see that I can make the ComboBox size change, but I'd prefer keeping that the same size.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: ComboBox Autosize Font

    No, it's not one of it's properties.
    You need to add some VBA-code to realise this.



  3. #3
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    Re: ComboBox Autosize Font

    I'm dealing with hundreds of fields, so I wouldn't want it to run to determine the font size during the initialize step. Is it possible to write VBA to change the font size setting permanently? So that whenever I change the lists of my dropdowns, I can run the code to update the font sizes prior to sending it out to anyone.

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: ComboBox Autosize Font

    Now you have to be more specific:
    are you talking about:

    - comboboxes in a sheet
    - comboboxes in a userform
    - comboboxes in a commandbar

    Are you really using 'hundreds' of comboboxes ?
    If so, I'd advise to scrutinize your project again to see whether that quantity can be reduced before writing code.
    'structuring precedes coding'

  5. #5
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    Re: ComboBox Autosize Font

    Hundreds of comboboxes in multiple userforms.

+ 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