+ Reply to Thread
Results 1 to 5 of 5

ComboBox default option

  1. #1
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    ComboBox default option

    Hello,
    I have a ComboBox userform, which reads the values from the RowSource.
    I want the CombBox to display, by default, the first item of the RowSource;
    Right now I am getting a blank option in the ComboBox dropdown so I need to click on it and select what I need, but I would like to have the first item by default, in the ComboBox.
    Could you please advise, how to do this?
    Thanks

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: ComboBox default option

    This is the only way I know how to do it-
    Select the combobox on the userform
    In the bottom left pane (the one for combobox properties) click in the blank field next to Value
    Type in whatever is the first item in your list.
    There is probably a better way to do it, I just don't know how.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: ComboBox default option

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: ComboBox default option

    Told you there was a better way to do it.
    Thanks AlphaFrog

  5. #5
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Re: ComboBox default option

    Thank you.

+ 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. userform default option button
    By adamheon in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-16-2016, 02:32 PM
  2. Returning the row number of the option after the selected option in a userform combobox
    By rep67439fgs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2014, 08:07 AM
  3. Data Validation with default option
    By DavidBW in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-27-2014, 06:22 PM
  4. Making an option button default
    By peedarp1985 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2010, 02:31 AM
  5. Default Option Button Values
    By maxwell13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2008, 06:03 PM
  6. Default Value in Combobox
    By VitoHGrind in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-11-2007, 01:04 PM
  7. Option Button as default
    By StephanieH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2005, 10:06 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