+ Reply to Thread
Results 1 to 6 of 6

Populating text boxes from a combo box choice

  1. #1
    Registered User
    Join Date
    04-19-2012
    Location
    Leeds, England
    MS-Off Ver
    Office for Mac 2011
    Posts
    17

    Exclamation Populating text boxes from a combo box choice

    Hi All,

    I am trying to populate text boxes from a combo box choice.

    When i choose the customer number, i want the text boxes to fill with the details of that customer. Here is what i have so far.
    Please Login or Register  to view this content.
    When running this code i get a named arguments not found error and the search format section in red is highlighted.

    Please help me get rid of this error for good.

    Thanks

    Adam

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

    Re: Populating text boxes from a combo box choice

    I have an older Mac version of Excel (Excel X), and Find does not include the SearchFormat argument. And, since you're getting an error, it looks like 2011 still does not include it. So, since it looks like you don't need the search to including formatting, you can simply remove it from the code...

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-23-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2011 for MAC
    Posts
    2

    Re: Populating text boxes from a combo box choice

    Hi Adam,

    Put this code on your user form where the combo box is,
    Please Login or Register  to view this content.
    I don't know the range of all the 'customer numbers' you have but just plug it in for example ("A6:A1000") thats the range of values that will show up on your combo box list!

    So for your other problem, how to populate the text boxes when people search that customer number.
    You basically have to

    Please Login or Register  to view this content.
    Last edited by arlu1201; 07-28-2012 at 01:01 PM.

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

    Re: Populating text boxes from a combo box choice

    Delete this, it's probably not applicable to your version

    Please Login or Register  to view this content.
    Your code shouldn't need to select ranges/sheets.

    Providing the data is a table on Clients

    Please Login or Register  to view this content.
    Hope that helps.

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

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    04-19-2012
    Location
    Leeds, England
    MS-Off Ver
    Office for Mac 2011
    Posts
    17

    Re: Populating text boxes from a combo box choice

    Thanks alot Roy, That really helped.

    Thanks to all that commented

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

    Re: Populating text boxes from a combo box choice

    Thanks for the rep & glad I helped

+ 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