+ Reply to Thread
Results 1 to 3 of 3

Set value of drop down list

  1. #1
    thevillain9@gmail.com
    Guest

    Set value of drop down list

    I've created a drop down list(list A) in a cell, using the
    data->validation list creating thing. However based on the selection
    of another list(list B), i want to default the values of list A, to one
    of the list items. I was trying to do it in VBA, but i couldn't just
    change the cell.value. The only way I could change it was by selecting
    the corrrect one in the sheet. thanks in advance for the help.

    -Ricky


  2. #2
    Bob Phillips
    Guest

    Re: Set value of drop down list

    I was able to do it with DV using

    Range("E1").Value = "Lynne"

    I could even set a value not in the list without complaints.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    <thevillain9@gmail.com> wrote in message
    news:1131034904.875069.142320@g47g2000cwa.googlegroups.com...
    > I've created a drop down list(list A) in a cell, using the
    > data->validation list creating thing. However based on the selection
    > of another list(list B), i want to default the values of list A, to one
    > of the list items. I was trying to do it in VBA, but i couldn't just
    > change the cell.value. The only way I could change it was by selecting
    > the corrrect one in the sheet. thanks in advance for the help.
    >
    > -Ricky
    >




  3. #3
    Chris Lavender
    Guest

    Re: Set value of drop down list

    Hi Ricky

    The way I've done this in the past is to have the DV list as a series of
    OFFSET formulae, ie have your subsets for List A in adjoining columns, a
    MATCH formula to find which you've selected in List B and
    =OFFSET(M1,0,matchresultreference), =OFFSET(M2,0,matchresultreference) etc
    for the List A DV table

    Hope this seems clear

    Best rgds
    Chris Lav
    <thevillain9@gmail.com> wrote in message
    news:1131034904.875069.142320@g47g2000cwa.googlegroups.com...
    > I've created a drop down list(list A) in a cell, using the
    > data->validation list creating thing. However based on the selection
    > of another list(list B), i want to default the values of list A, to one
    > of the list items. I was trying to do it in VBA, but i couldn't just
    > change the cell.value. The only way I could change it was by selecting
    > the corrrect one in the sheet. thanks in advance for the help.
    >
    > -Ricky
    >




+ 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