+ Reply to Thread
Results 1 to 6 of 6

Combobox in page 2 of multi page userform excel 2003

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    31

    Combobox in page 2 of multi page userform excel 2003

    Dear All

    I hope i am not going bonkers...have spent hours trying to work this one out.

    I have a multipage userform, in page 2 there is a combobox which i need to add items to when the userform is initialised. as a result i have written the following code, but this is not populating the combobox. Will really appreciate some help with this....


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Combobox in page 2 of multi page userform excel 2003

    Try replacing...

    Please Login or Register  to view this content.
    with

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-30-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Combobox in page 2 of multi page userform excel 2003

    Hi Domenic

    Worked like magic

    Many thanks....
    Last edited by AliiShariff; 06-27-2012 at 06:51 PM. Reason: Got answer

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Combobox in page 2 of multi page userform excel 2003

    For some reason it's been designed so that the object type is used, not the name of the UserForm. That's probably because the Initialize event can only apply to a single UserForm, so it's not necessary to be specific. Other events, on the other hand, can apply to multiple controls of the same type. For example, you can have ComboBox1, ComboBox2, etc. So, if you wanted to write code for the Change event for one of the ComboBoxes, you would have specify which one by name (ie. ComboBox1_Change).

  5. #5
    Registered User
    Join Date
    05-30-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Combobox in page 2 of multi page userform excel 2003

    Many thanks ....much appreciated

  6. #6
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Combobox in page 2 of multi page userform excel 2003

    You're very welcome!

+ 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