+ Reply to Thread
Results 1 to 7 of 7

Data validation referring to an activex combo box?

  1. #1
    Registered User
    Join Date
    05-22-2014
    Posts
    15

    Data validation referring to an activex combo box?

    I made an activex combo box that refers to another sheet within the workbook which lists a group of facilities. What I can't figure out is how to get the selected facility within the combo box to refer to the VLOOKUP to enter the appropriate information from another sheet which contains the address, city. state, zip, phone and fax number in the appropriate field.

    I've attached an example. Basically the combobox is around the B18 area on the Form tab. When you select a facility it should populate the fields mentioned above in the fields below, which should refer to the regional stores tab. Any help would be appreciated! Thank you.
    Last edited by phmdt; 03-10-2016 at 12:17 PM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Data validation referring to an activex combo box?

    Hi phmdt

    If I understand the issue:
    • Enter Design Mode
    • Right Click on the ComboBox
    • Select Properties
    • Set the Linked Cell Value to $B$18
    • Change the Formulas in Cells B19 to B24 to reference $B$18
    • Exit Design Mode

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Row\Col
    A
    B
    C
    D
    16
    17
    FACILITY INFORMATION
    18
    Facility Name: ABSOLUT AT ALLEGANY,LLC
    UNIT
    19
    Address: 2178 NORTH 5TH ST
    20
    City: ALLEGANY
    21
    State: NY
    22
    Zip: 14706
    23
    Phone #: 716-373-2238
    24
    Fax #: 716-373-2273
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    05-22-2014
    Posts
    15

    Re: Data validation referring to an activex combo box?

    Thank you! It's now displaying properly.

    Any idea why my indexing would break on the top part of the form? When a pharmacy is selected the information should populate on the right hand side. Nothing I changed would have effected it? What am I missing? I attached an updated example.

    Indexing formula
    =INDEX('Regional Stores'!X:X,MATCH('Regional Stores'!AK2,'Regional Stores'!AF:AF,0))
    Last edited by phmdt; 03-10-2016 at 12:18 PM.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Data validation referring to an activex combo box?

    Hi phmdt

    I'd guess because Regional Stores Cell AK2 evaluates to 0...

  5. #5
    Registered User
    Join Date
    05-22-2014
    Posts
    15

    Re: Data validation referring to an activex combo box?

    That's strange because in my other version it's working properly evaluating to zero. How would I fix it in this work book?

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Data validation referring to an activex combo box?

    Hi phmdt

    I'd suggest there's something different. Evaluate the Formula in each Workbook...see if you can spot it. If not, upload the "Working" version...one of us will look at it.

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Data validation referring to an activex combo box?

    Hi phmdt

    I believe the error occurs because Regional Stores Column AI has #REF! Errors.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Regional Stores Cell AK2 is dependent on Regional Stores Cell AJ2. Regional Stores Cell AJ2 is dependent on Regional Stores Cell AI2. Regional Stores Cell AI2 has a #REF error. Fix that #REF! error you should be good to go.

    I'd fix it but I don't know what it should be...I'd suspect
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. [SOLVED] Button to open Userform that adds data to ActiveX Combo Boxes
    By adray13 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-09-2015, 06:47 PM
  2. Dependant ActiveX Combo Box list based on Data Validation List
    By spalmer28 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-12-2014, 07:57 AM
  3. [SOLVED] Autocomplete dropdown list, NOT data validation or ActiveX
    By Phillips Contracting in forum Excel General
    Replies: 7
    Last Post: 03-24-2014, 02:31 PM
  4. Replies: 8
    Last Post: 12-26-2013, 02:23 PM
  5. Replies: 2
    Last Post: 06-03-2013, 08:26 AM
  6. List the cells with data validation rules referring to other sheets/books.
    By leaning in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-07-2011, 11:22 AM
  7. Referring to external workbook in Data Validation
    By aposatsk in forum Excel General
    Replies: 2
    Last Post: 08-21-2006, 11:24 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