+ Reply to Thread
Results 1 to 5 of 5

data validation dependant on previous cell

  1. #1
    Registered User
    Join Date
    09-22-2013
    Location
    sydney, australia
    MS-Off Ver
    Excel 2010
    Posts
    1

    data validation dependant on previous cell

    I have a worksheet that I'm going to use as a data/keyword driver in automated testing. This worksheet will be used to work out the test case steps and the keywords for each test case. the worksheet will be named the same as the testcase id it represents. These are the columns I want to populate: PARENT (to have these possible values:Browser, Browser Page, Browser Window, Browser Dialog, Dialog, Window);
    PARENT TYPE (so if its a Browser then it must contain a list of urls from a list head in worksheet, if its a Window then it gets this from a list of valid values for windows only - like winedit yet cannot have browser values like webedit);
    KEYWORD- this found in the "Descriptions" worksheet and is the keyword reference to the object definition outlined in this worksheet (that is unique in combination with the url/browser/window/dialog: so for instance for a browser, the row that this is defined in will have the following cells each in succession will contain :- browser URL, browser|Dialog|Browser Dialog|Window title, page name, 'keyword1|object definition','keyword2|object definition','keyword3|object definition' etc);
    EVENT - which can have this list as a validation: Activate,CheckProperty,Click,Close,Exist,Launch,Navigate,Run,Select,Set,SetSecure,Sync,Type. Obviously some of these events are not valid for all object types but if you can show me how to do this for 'Parent Type' then the same method would apply here?
    VALUE a free text field

    and I will add others when I know how to do the above.
    What I need to know with examples as I'm not a very good theorist.....

    1.I can create the 'PARENT' entry by a simple data validation list but I dont know how to make the 'PARENT TYPE' dependant to the Parent - as the example above outlines.
    2. How to only show the keywords available (in a dropdown) for the URL that is held in my URL worksheet, But if its not a browser like a dialog then get the keywords from the next field since the URL value would be blank and the title exists for any parent)

    I am assuming all the Columns can be populated using different versions of the 2 methods I would need to find out from anyone on this forum. I am no excel expert but I can do most things once given an example or topics to search with.
    I would appreciate any help

    Thanks
    Joe

    attached is an example that my friend ansho sent me but I am using a different approach (the password for the vba is relevantcodesone) (couldn't attach file)

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: data validation dependant on previous cell

    This is a file with a simple example of a cascading drop down list.

    If your lists are dynamic in that they grow or shrink you can use tables for the lists as in V2.
    Attached Files Attached Files
    Last edited by newdoverman; 09-22-2013 at 08:40 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Registered User
    Join Date
    05-27-2009
    Location
    sydney, australia
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: data validation dependant on previous cell

    shows how far I have gotten

    PWCTESTCASES.xls

    is there a way to populate the KEYWORD cell parsing the data from the previous cell PARENT TYPE.

    for example if PARENT TYPE was 'Firmtheme" then the keywords available are the ones from Row 4 downwards from the list named as 'Firmtheme'. This will be how I populate my automation runsheet by reading adown my testcase runsheet and the TESTCASE worksheet is the testcase template where I define the testcase and its steps and then Rename as the testcase ID.

    how can i do this? I looked at your example and didn't get a clue how - can you advise?
    Attached Files Attached Files
    Last edited by jloyzaga; 09-22-2013 at 09:33 PM. Reason: need to remove attached files

  4. #4
    Registered User
    Join Date
    05-27-2009
    Location
    sydney, australia
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: data validation dependant on previous cell

    please use the file attached inline

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: data validation dependant on previous cell

    jloyzaga...
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Dependant data validation with dependant default value
    By JamesMeek in forum Excel General
    Replies: 2
    Last Post: 04-08-2013, 10:16 AM
  2. [SOLVED] Reset dependant validation list when the previous validation list is changed.
    By Rimmu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-10-2012, 09:23 AM
  3. dependant data validation
    By ztg5003 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2011, 09:16 AM
  4. Replies: 2
    Last Post: 07-21-2010, 09:10 AM
  5. Excel 2007 : Multiple Cell Dependant Data Validation
    By excelpanda in forum Excel General
    Replies: 6
    Last Post: 04-27-2010, 09:30 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