+ Reply to Thread
Results 1 to 7 of 7

Combo Box wont Display list on initial launch

  1. #1
    Registered User
    Join Date
    08-16-2010
    Location
    Laguna, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    7

    Combo Box wont Display list on initial launch

    Hello,

    I just made my first VBA and it's working good, though I have a couple of issues and i would really appreciate your help -

    The first item on my userform is a combo box and the rest of the items will be activated depending on the option from that combo box that the user picked the code is:
    Code:
    Please Login or Register  to view this content.
    The problem is when I launch the userform and I select the drop down, it does not give me the options but when i click the "Clear" button which is supposed to clear the values of the boxes if the user decided not to push through with what he entered it now gives me both values.

    The code for the clear button is

    Please Login or Register  to view this content.
    Now, the funny thing is, when I click the Clear button it doubles my combo box options by adding the same list again. It repeats the same process everytime I click the Clear button.

    I would really appreciate any thoughts on this.

    thank you much!

  2. #2
    Registered User
    Join Date
    08-16-2010
    Location
    Laguna, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Combo Box wont Display list on initial launch

    Just to add, when I said it gives me the option when i hit the "clear" button after the initial launch, what it probably does is made the options available after the reset (call userform_initiate)

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Combo Box wont Display list on initial launch

    Where is the Userform__initialize code located? It should be in the useform's code module, not in a normal module.
    Remember what the dormouse said
    Feed your head

  4. #4
    Registered User
    Join Date
    08-16-2010
    Location
    Laguna, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Combo Box wont Display list on initial launch

    Hello,

    Thanks for looking into this. Yes, it is in the Userform's code module. I am able to launch the userform, though on the initial launch, the options of the 1st combox (or all the combo boxes for this matter if I enable them) are not available unless i hit the "clear" button.

  5. #5
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Combo Box wont Display list on initial launch

    We'd need to see either the workbook or the complete code listing for the userform.

  6. #6
    Registered User
    Join Date
    08-16-2010
    Location
    Laguna, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Combo Box wont Display list on initial launch

    Hello,

    I was able to make it work by putting the selection in the excel sheet rather than code module. thanks!

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Combo Box wont Display list on initial launch

    What selection?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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