+ Reply to Thread
Results 1 to 13 of 13

Auto fill text box after selecting a value in a CombiBox

  1. #1
    Forum Contributor
    Join Date
    05-01-2015
    Location
    Kent, England
    MS-Off Ver
    2013
    Posts
    148

    Auto fill text box after selecting a value in a CombiBox

    Hi all

    I want to populate 6 text boxes with names depending on what is selected in a Combi box. So i want to select a name from my combi box "CBO_Teamleader" = Dave then i want this to populate 6 other boxes

    Txt_OP1 = Bob
    Txt_OP2 = Kevin
    Txt_OP3 = Kenny
    Txt_QC1 = Kevin
    Txt_QC2 = Peter
    Txt_QC3 = Theresa

    I know i need to put it in the CBO_Teamleader change SUB and so far have the following that dosn't work

    Please Login or Register  to view this content.
    I have 4 names to chose from in CB_Teamleader and each one will need to populate the same 6 Txtboxes. I am not sure if its easier to pull the names for the 6 Txt boxes from my list on sheet 3 named ("Lists") the names are located in the following cells:

    Txt_OP1 = Bob Lists N5
    Txt_OP2 = Kevin Lists O5
    Txt_OP3 = Kenny Lists P5
    Txt_QC1 = Kevin Lists N11
    Txt_QC2 = Peter Lists O11
    Txt_QC3 = Theresa Lists P11

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Auto fill text box after selecting a value in a CombiBox

    How does the code you have not work?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    05-01-2015
    Location
    Kent, England
    MS-Off Ver
    2013
    Posts
    148

    Re: Auto fill text box after selecting a value in a CombiBox

    I get a compile error, method or data member not found. and it highlights the private sub line and the .value = "Bob"

    Please Login or Register  to view this content.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Auto fill text box after selecting a value in a CombiBox

    Have you checked the names of your textboxes?

  5. #5
    Forum Contributor
    Join Date
    05-01-2015
    Location
    Kent, England
    MS-Off Ver
    2013
    Posts
    148

    Re: Auto fill text box after selecting a value in a CombiBox

    I have copied and pasted them directly.
    Attached Files Attached Files

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Auto fill text box after selecting a value in a CombiBox

    You've got a typo it should be Value not valve.

  7. #7
    Forum Contributor
    Join Date
    05-01-2015
    Location
    Kent, England
    MS-Off Ver
    2013
    Posts
    148

    Re: Auto fill text box after selecting a value in a CombiBox

    Oh dear thank you a little embarrassing, can i ask as i have 4 diffrent names in the teamleader box what is the best way to code the 6 txt boxes? is it to write an IF statement for each as i have done for Dave?

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Auto fill text box after selecting a value in a CombiBox

    You mention 6 textboxes, I assume the ones named in the original post, but I can't seem to find them on either userform in the workbook.

    Would the values to go in these textboxes be based on the selection in the combobox?

    If so are those values listed somewhere?

  9. #9
    Forum Contributor
    Join Date
    05-01-2015
    Location
    Kent, England
    MS-Off Ver
    2013
    Posts
    148

    Re: Auto fill text box after selecting a value in a CombiBox

    Sorry i changed the 6 combi boxes to text ones. The names are listed on the Lists page of the WB in cells D3-D6
    Attached Images Attached Images

  10. #10
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Auto fill text box after selecting a value in a CombiBox

    Isn't it the team leaders in D3-D6?

  11. #11
    Forum Contributor
    Join Date
    05-01-2015
    Location
    Kent, England
    MS-Off Ver
    2013
    Posts
    148
    Quote Originally Posted by Norie View Post
    Isn't it the team leaders in D3-D6?
    They are the ones yes
    Mark
    Rob
    John
    Dave

  12. #12
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Auto fill text box after selecting a value in a CombiBox

    So are the names that are to go in the 6 textboxes based on which team leader is selected listed somewhere?

  13. #13
    Forum Contributor
    Join Date
    05-01-2015
    Location
    Kent, England
    MS-Off Ver
    2013
    Posts
    148

    Re: Auto fill text box after selecting a value in a CombiBox

    yes sorry not with it tonight so:
    Team leader
    Rob (D3)

    OP1 Peter Bridle (N3) OP2 Dave Everitt (O3) OP3 Jim Hilton (P3)
    QC1 Simon Morris (N9) QC2 Chris Hein (O9) QC3 Nev Rapley (P9)

    Team leader
    Mark (D4)

    OP1 Alan Head (N6) OP2 Mark Ford (O6) OP3 Norman Smith (P6)
    QC1 Huw Lovesey (N12) QC2 Andrew Martian (O12) QC3 Ken Thompson (P12)

    Team leader
    John (D5)

    OP1 Rob Marone (N4) OP2 Nick Ryder (O4) OP3 Roy Osborne (P4)
    QC1 David Jenkins (N10) QC2 Deigo Valanotti (O10) QC3 Gwyn Samual (P10)

    Team leader
    Dave (D6)

    OP1 Bob Dhilan (N5) OP2 Kevin Hobbs (O5) OP3 Kenny Brookman (P5)
    QC1 Kevin Grimwade (N11) QC2 Peter Marshal (O11) QC3 Threasa Jordan(P11)

+ 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. Replies: 4
    Last Post: 06-16-2015, 12:27 PM
  2. Replies: 3
    Last Post: 04-27-2015, 12:16 PM
  3. Formulate to auto fill cells after selecting dropdowns
    By Kesar in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-07-2014, 01:24 PM
  4. Auto-fill Data When Selecting Option From Drop-Down List
    By patrickdjames in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-25-2013, 11:49 AM
  5. Auto Fill after selecting from a drop down box
    By Toni54 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-29-2012, 10:30 PM
  6. Auto Fill Text & Fill Color
    By emiles1987 in forum Excel General
    Replies: 0
    Last Post: 08-11-2010, 02:24 PM
  7. Auto fill fields after selecting from drop down
    By raginggoat in forum Excel General
    Replies: 1
    Last Post: 09-03-2009, 10:36 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