+ Reply to Thread
Results 1 to 8 of 8

Dynamic drop-down at sheet with vba

  1. #1
    Registered User
    Join Date
    01-08-2017
    Location
    Barcelona
    MS-Off Ver
    Office 2019
    Posts
    82

    Dynamic drop-down at sheet with vba

    Hi

    Thanks to the help of this fórum I almost have one Project finished ... it only rest me one thing that suponse to be easy but it isn't. I been able to charge correctly the combobox at the user form, no matters what values are at the cells.

    For the sheet I try to use data validation but for name ranges the spaces and special characters give me a lot of problems, also the lmitiation of range names and use of indirect with dinamyc ranges (OFFSET etc.) gives me a lot of problems.

    Is there any way to include some code at the sheet to avoid dropdown lists at the first four columns at sheet data similar to that conform the combobox? I means values into sheet Data for col A and B are from sheet Pruebas and C and D from Mutuas. Also B depends on A and D on C. I only gets for the first column (see code for Sheet data) but I don't know how to do for the dependent column.

    I upload a file with the user form and the data sheet.
    Attached Files Attached Files
    Last edited by Judith_Chao; 02-02-2017 at 07:58 PM.

  2. #2
    Registered User
    Join Date
    01-08-2017
    Location
    Barcelona
    MS-Off Ver
    Office 2019
    Posts
    82

    Re: Dynamic drop-down at sheet with vba

    NOTE: I reupload the test file because the other has one error at code for defining names to columna A and C at Data sheet (See code). Now it Works for the first column
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-08-2017
    Location
    Barcelona
    MS-Off Ver
    Office 2019
    Posts
    82
    Quote Originally Posted by Judith_Chao View Post
    NOTE: I reupload the test file because the other has one error at code for defining names to columna A and C at Data sheet (See code). Now it Works for the first column
    No one has any suggestion or idea I can try or formula code procedure I can search information of ?

  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: Dynamic drop-down at sheet with vba

    Hi Judith_Chao

    I've been trying to understand what you're attempting to do.

    It APPEARS to me you're trying to Drill Down on the ListBox dependent on the selections in the Comboboxes but your existing Code and Named Ranges does not support that conclusion.

    So, if you will, give us a step by step of what you're attempting to do.
    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.

  5. #5
    Registered User
    Join Date
    01-08-2017
    Location
    Barcelona
    MS-Off Ver
    Office 2019
    Posts
    82
    Quote Originally Posted by jaslake View Post
    Hi Judith_Chao

    I've been trying to understand what you're attempting to do.

    It APPEARS to me you're trying to Drill Down on the ListBox dependent on the selections in the Comboboxes but your existing Code and Named Ranges does not support that conclusion.

    So, if you will, give us a step by step of what you're attempting to do.
    Hi !

    i explain myself. I try to make depending drop down at the sheet similar to this I have at the form.
    The first five columns are intended to be filled by a drop down list at the sheet and searched by combobox at the userform.
    At the userform I can make it dinamically and no problem. But at the shett I find that I must use names, that have limitations of names I can use. I want use name with apaces and no matter what symbols but I can't because I want to create depending dropdowns.
    So for summary I have column 1 and 2 are depending values and column 3 and 4, 5 is independent. So if I put some value at colum1 I want show me some específico values at colum 2, and the same for 3-4. I obtain it and it makes dinamically at the userform but at the sheet I must use Indirect (and it don't permit dinamically ranges) and names don' permit spaces or symbols.

    So I ask if there is another way, perhaps including code at the sheet to make it easier to update and mantein than using names and it's restrictions.

    Any clarification you need please don hesitate to ask I'm really interested to know if that can be made without Indirect or name ranges.

  6. #6
    Registered User
    Join Date
    01-08-2017
    Location
    Barcelona
    MS-Off Ver
    Office 2019
    Posts
    82
    Delete duplicate post
    Last edited by Judith_Chao; 02-10-2017 at 04:57 AM.

  7. #7
    Registered User
    Join Date
    01-08-2017
    Location
    Barcelona
    MS-Off Ver
    Office 2019
    Posts
    82
    Delete duplicate post
    Last edited by Judith_Chao; 02-10-2017 at 05:02 AM.

  8. #8
    Registered User
    Join Date
    01-08-2017
    Location
    Barcelona
    MS-Off Ver
    Office 2019
    Posts
    82

    Re: Dynamic drop-down at sheet with vba

    No one have an idea or an indication to read or a way to search into ???

    Any suggestion will be vey greatful

+ 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] How to change the code in dropdown multiple selection lsit to copy to other cells in sheet
    By ajanson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2016, 11:16 AM
  2. [SOLVED] VBA code to automatically transfer data from one sheet to another based on dropdown
    By jadersantos in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-22-2013, 11:01 AM
  3. [SOLVED] Populate data on another sheet based on dropdown criteria from the first sheet
    By ARod0726 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-19-2013, 01:36 PM
  4. Replies: 3
    Last Post: 02-20-2013, 12:54 AM
  5. Replies: 7
    Last Post: 12-16-2012, 04:24 PM
  6. Need a Dropdown list that can edit cells on another sheet based on sheet name
    By draegen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-10-2012, 02:46 PM
  7. [SOLVED] Excel VBA: Dropdown box selection in first sheet to populate 2nd sheet from 3rd sheet data
    By EMLalan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-07-2012, 09:46 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