+ Reply to Thread
Results 1 to 3 of 3

How do you write VBA to select Data Validation?

  1. #1
    Forum Contributor
    Join Date
    05-02-2013
    Location
    Indiana
    MS-Off Ver
    Excel 2016
    Posts
    190

    How do you write VBA to select Data Validation?

    Hello,

    I am using data validation for a list of names to choose from. Once the name has been choosen, I would like to clear the name by clicking a button. I would like for the Clear Name button to choose the first name in the list, which I have purposely left blank for this reason. However, when I recorded the macro, it did not record my click on the drop-down-arrow to select the first name in the list (which is blank). Why did it not record my selection? Is there a way in VBA to select a particular name from my list? Thanks!

    redsab
    Attached Files Attached Files
    Last edited by redsab; 09-18-2013 at 12:13 PM.

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: How do you write VBA to select Data Validation?

    You may use this to select the value of the first cell in the validation range:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    05-02-2013
    Location
    Indiana
    MS-Off Ver
    Excel 2016
    Posts
    190

    Re: How do you write VBA to select Data Validation?

    Izandol,

    That works great! Thank you!, But how in the world did you know such a thing....?

    redsab

+ 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. Using Defined Names with Data Validation Depend and Data Validation Multi Select
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-01-2012, 05:36 PM
  2. [SOLVED] Using a 'Select' (Data Validation) List?
    By [email protected] in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-30-2005, 02:45 PM
  3. Auto Select from Data Validation but allow override
    By JG Scott in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-23-2005, 11:30 AM
  4. trying to write a formula ivolving data validation
    By melben in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 05-26-2005, 11:59 PM
  5. how do I write a formula with data validation
    By melben in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 05-22-2005, 10: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