+ Reply to Thread
Results 1 to 3 of 3

How to set date picker default date to Today()?

  1. #1
    Forum Contributor VAer's Avatar
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    803

    How to set date picker default date to Today()?

    I am talking about Date Picker in userform, and it works fine. But the issue is: every time when opening the form, the default value is the value in the property. Typically, it is the date I created the control. Of course the date can be changed to another date(such as 11/23/2017). But that is not what I want, I wanna change it to a dynamic date (the date when opening the form).

    I tried to enter today() there, but it could not be accepted. Syntax is wrong, I guess.

    Thanks.
    Attached Images Attached Images

  2. #2
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,466

    Re: How to set date picker default date to Today()?

    It has been years since I used the Date Picker control but as far as I can remember, all you need to do is in the UserForm Initialize event, set the Date Picker's Value to Date...

    dtPicker1.Value = Date

  3. #3
    Forum Contributor VAer's Avatar
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    803

    Re: How to set date picker default date to Today()?

    Quote Originally Posted by Rick Rothstein View Post
    It has been years since I used the Date Picker control but as far as I can remember, all you need to do is in the UserForm Initialize event, set the Date Picker's Value to Date...

    dtPicker1.Value = Date
    Thank you.

+ 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: 1
    Last Post: 10-16-2019, 12:08 PM
  2. Date and Time picker (default values)
    By Mahmoudelnemr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-13-2019, 11:09 AM
  3. [SOLVED] Date picker-Need it to default to today's date. Also getting error but it seems to work.
    By aliciaward1001 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2017, 12:56 PM
  4. [SOLVED] Date Picker Default Value
    By jeetkapadia in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-02-2017, 03:13 PM
  5. Replies: 4
    Last Post: 02-03-2017, 10:36 AM
  6. [SOLVED] Date picker - must not be more that 6 yrs from today
    By AuntyJean in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2015, 10:33 AM
  7. Default today's date - Excel 2000
    By Abay in forum Excel General
    Replies: 4
    Last Post: 08-25-2005, 12:05 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