+ Reply to Thread
Results 1 to 4 of 4

How can I get the selected value of a data validation list with vba?

  1. #1
    Registered User
    Join Date
    09-28-2012
    Location
    boston
    MS-Off Ver
    Excel 2010
    Posts
    42

    How can I get the selected value of a data validation list with vba?

    We have a drop list in column F. I need to get the value the user selects from that drop list when it's changed. Can anyone provide sample code to do this or point me in the right direction.

    Tracy

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: How can I get the selected value of a data validation list with vba?

    With
    Your DV cell named: MyDVCell

    This code, put into your sheet's code module, displays a message box containing the value of MyDVCell whenever it changes:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    09-28-2012
    Location
    boston
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: How can I get the selected value of a data validation list with vba?

    Can I refrence the cell where the list is in, E7 in this case? The list is not named. It was created via the data validation option on the sheet.

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: How can I get the selected value of a data validation list with vba?

    You'll need to provide some sample data and describe what value you want returned.
    Attaching an Excel file would be most helpful.

+ 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. Replies: 4
    Last Post: 07-03-2014, 02:37 AM
  2. Password for Data Validation selected List
    By hecgroups in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2012, 02:16 AM
  3. data selected by validation 2 list
    By pichai in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2008, 08:39 AM
  4. [SOLVED] data validation list selected from a range
    By Native in forum Excel General
    Replies: 11
    Last Post: 01-19-2006, 09:15 PM
  5. how to monitor the selected value of a Data Validation list
    By silkworm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2005, 12:10 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