+ Reply to Thread
Results 1 to 3 of 3

Data Validation - Drop-down Dependent List

  1. #1
    Registered User
    Join Date
    08-19-2014
    Location
    Null
    MS-Off Ver
    MS Office 2007
    Posts
    2

    Data Validation - Drop-down Dependent List

    Hello everyone,

    I've been stuck on a Data validation list issue for 2 days and I don't manage to solve it..

    I have two drop-downs lists containing series of letters, the second depending on the first one :

    2jcj7rr.png

    First of all, my macro aims to :

    1) Populating the Excel sheet Spedizioni aperte with data, letting the column F (for the first list) and G (second dependent list) blank.
    2) Initializing the Table and the Ranged names from the sheet Info
    3) Get the data range from the sheet Spedizioni aperte
    4) Populate this range in the column F with the first data validation list and G with the second one

    Here's my function for points 2) to 4):

    Please Login or Register  to view this content.

    When I launch the macro, the table and Named ranges are created and the column F is populated correctly but I get an "Error 1004" while it tries to insert the data validation list on the column G.

    Senza nome2.png

    Does someone have an idea?

    I need a fresh eye
    Thank you very much for your help !

    Fabien.

  2. #2
    Forum Contributor
    Join Date
    07-29-2014
    Location
    Oz
    MS-Off Ver
    2010
    Posts
    142

    Re: Data Validation - Drop-down Dependent List

    I think the error is occurring because data validation already exists on column G. Try clearing the data validation from column G before you run the macro and see if that helps.

  3. #3
    Registered User
    Join Date
    08-19-2014
    Location
    Null
    MS-Off Ver
    MS Office 2007
    Posts
    2

    Re: Data Validation - Drop-down Dependent List

    Hello Danerida

    No, I always clear all the data before running the macro again. And you can see that I use the ".Validation.Delete" method before selecting the range in column G.

    In the meantime I solved the issue.

    It was due to the default value I insert in each cell in column F ("Selezioni...") before creating the data validation list in column G. This value doesn't exist in the first drop-down list so I got an error. Instead, if I initialize the value of each cell in column F with "LIV" or any existing value in the first drop-down list ("MLV", "ARR",...), it works.

    Thanks anyway

+ 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] Dependent Drop Down Lists, Data Validation, Reset Dependents
    By daxlyon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-12-2013, 11:15 AM
  2. [SOLVED] Multiple Dependent Data Validation drop down boxes
    By dawondr in forum Excel General
    Replies: 4
    Last Post: 01-23-2013, 10:00 AM
  3. [SOLVED] Data Validation using multiple dependent drop down lists
    By ceruppel in forum Excel General
    Replies: 4
    Last Post: 12-17-2012, 06:39 PM
  4. Dependent Data Validation/Drop Down
    By mpn1925 in forum Excel General
    Replies: 1
    Last Post: 08-10-2011, 01:19 PM
  5. Replies: 2
    Last Post: 05-12-2011, 09:23 PM

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