+ Reply to Thread
Results 1 to 3 of 3

VBA Data Validation, How to select 1st item on the list?

  1. #1
    Forum Contributor
    Join Date
    02-09-2021
    Location
    New York
    MS-Off Ver
    Office 2019
    Posts
    145

    VBA Data Validation, How to select 1st item on the list?

    I created Data Validation in VBA.
    Please Login or Register  to view this content.
    How can I choose the first item on the list? (or any in the list)
    The sheet is leaving a blank.

    Code:
    Please Login or Register  to view this content.


    My first post, please excuse newbie question.
    Self taught VBA newbie.
    Current skill: above "record macro".

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: VBA Data Validation, How to select 1st item on the list?

    Hi,

    Please Login or Register  to view this content.
    This will give you the 1st item of the Data Validation. You can change the (0) to get the desired item.

    Also, if the numbers are of Double data type, make sure you convert it if needed.

    Also, change the Activecell to the desired reference
    Cheers!
    Deep Dave

  3. #3
    Forum Contributor
    Join Date
    02-09-2021
    Location
    New York
    MS-Off Ver
    Office 2019
    Posts
    145

    Re: VBA Data Validation, How to select 1st item on the list?

    Dave Thank you,
    That solved it. I just kinda sucks that I couldn't find a way to do it in one line inside the // With Sheets.

+ 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. Select item of a dropdown list (data validation) and refresh one pivot table
    By ATN123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-17-2014, 07:40 AM
  2. Select next/previous item from data validation list using Command Button
    By msn.niyasu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-09-2014, 07:26 AM
  3. [SOLVED] Select item of a dropdown list (data validation) and refreshes values of all pivot tables
    By siroco79 in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 03-06-2014, 05:35 AM
  4. macro to select each item in data validation list
    By Olivia Wong in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-30-2013, 01:59 PM
  5. Macro to select an item from a data validation list
    By blindedbythepj in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-12-2012, 03:53 PM
  6. Replies: 1
    Last Post: 06-11-2012, 04:43 AM
  7. Macro to select an item in a Validation List
    By emwhite in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2010, 10:41 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