+ Reply to Thread
Results 1 to 3 of 3

Automatic selection of Date from dropdown list

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Automatic selection of Date from dropdown list

    Hello:

    Please refer to attached sheet.

    I need to select the date from a dropdown list in Cell A3.

    I want to keep the dropdown list but when I come to this sheet, i need today's date
    automatically chosen in cell A3.

    Please let me know if any questions.

    Thank you

    Riz
    Attached Files Attached Files

  2. #2
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Automatic selection of Date from dropdown list

    Increase your data validation selection to for example "H200", while keep "ignore empty cells" on.

    Then add the workbook open event as follows :
    Private Sub Workbook_Open()
    If Sheets(1).Range("H65536").End(xlUp).Value <> Date Then Sheets(1).Range("H65536").End(xlUp).Offset(1, 0).Value = Date
    Range("A3").Value = Sheets(1).Range("H65536").End(xlUp).Value
    End Sub
    Works fine

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Automatic selection of Date from dropdown list

    Hi JasferD:

    It does not work for me.
    Can you please upload the excel file with the code.

    Please let me know if any questions.

    Thank you

    Riz

+ 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