+ Reply to Thread
Results 1 to 8 of 8

vba code for dependable combo box form

  1. #1
    Forum Contributor
    Join Date
    09-09-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    102

    vba code for dependable combo box form

    Hi there,

    I am creating a form with several dependable combo boxes and I would like a helping hand to get started. I am trying to get combobox2(labelled curriculumtopicmain) to show different values dependent on combobox1 (labelled QualificationDD) selection. Heres my code so far:

    If QualificationDD = "Short Course Certificate in Hospitality Guest Relations Level 1 Qualification code_ETUET_C_1" Then Show.me.Short_Course_Certificate_in_Hospitality_Guest_Relations_Level_1_Qualification_code_ETUET_C_1

    Any help would be muchly appreciated.

    Thanks

    Zak

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    12,305

    Re: vba code for dependable combo box form

    I'm afraid that code makes no sense. Can you give us an example of what should be in the dependent combobox based on the different values in the first combobox?
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    09-09-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    102

    Re: vba code for dependable combo box form

    In combobox2 I would like :

    ETUET_C_K_1_001
    ETUET_C_K_1_002
    ETUET_C_K_1_003
    ETUET_C_K_1_004

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    12,305

    Re: vba code for dependable combo box form

    Then the code would look something like:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    09-09-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    102

    Re: vba code for dependable combo box form

    Thank you, however this still leaves combo box 2 when combo box 1 is selected. Any more ideas?

    Zak

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    12,305

    Re: vba code for dependable combo box form

    No idea what you mean by that. Can you elaborate?

  7. #7
    Forum Contributor
    Join Date
    09-09-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    102

    Re: vba code for dependable combo box form

    Yes sorry, when I click on Short Course Certificate in Hospitality Guest Relations Level 1 Qualification code_ETUET_C_1 in combo box 1, combo box 2 is not showing the array i.e. ETUET_C_K_1_001", "ETUET_C_K_1_002", "ETUET_C_K_1_003", "ETUET_C_K_1_004. Its still blank.

  8. #8
    Forum Expert romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    12,305

    Re: vba code for dependable combo box form

    Can you post your workbook - it will speed this up greatly.

+ 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. Code works with Combo Box-Form Control, but not with Combo box - ActiveX Control
    By nangys in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-01-2014, 08:51 AM
  2. Dynamic Dependable activex combo box with vba
    By mani_bbc05 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-09-2013, 06:22 AM
  3. combo box user form code for two combo boxes
    By robert.begley1 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-01-2012, 02:25 PM
  4. vba - dependable combo box - runtime error '1004'
    By plavooka23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-25-2012, 01:06 AM
  5. Dependable combo box
    By CESAR V. ARROYO in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-15-2010, 06:50 PM

Tags for this Thread

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