+ Reply to Thread
Results 1 to 5 of 5

Multiple DTpicker's to display default date as today?

  1. #1
    Registered User
    Join Date
    01-29-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    42

    Multiple DTpicker's to display default date as today?

    SO I have a userform that has 4 DTPicker's on it, when ever I open the userform the DTPicker's show a date from last week?! How do I get them to show the current date when they're opened?

    Below is all the code I have in regards to the userform
    Please Login or Register  to view this content.
    Below is the macro button used to open the userform
    Please Login or Register  to view this content.
    Any help would be appreciated as this has me baffled now!

    thanks

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Multiple DTpicker's to display default date as today?

    Add this procedure. It sets the DTPicker dates to today's date when the userform is initialized.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    01-29-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: Multiple DTpicker's to display default date as today?

    Quote Originally Posted by AlphaFrog View Post
    Add this procedure. It sets the DTPicker dates to today's date when the userform is initialized.

    Please Login or Register  to view this content.
    Thanks, were do I add this? To the Macro that opens the userform or the in amongst the code in the userform?

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Multiple DTpicker's to display default date as today?

    In amongst the code in the userform. That's the userform's code module.

  5. #5
    Registered User
    Join Date
    01-29-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: Multiple DTpicker's to display default date as today?

    Thanks. Works perfect

+ 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. [SOLVED] DTPicker default value change to current date
    By Lalie in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-11-2013, 06:43 AM
  2. condit. format: If date in cell = today, display "Today"
    By ratkins in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2013, 01:33 PM
  3. Userform: Calender to open with today's date as default
    By Ashali in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2012, 07:01 AM
  4. Display a Value based on Today's Date in Date Range
    By barella in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-12-2010, 06:25 AM
  5. Replies: 3
    Last Post: 02-26-2009, 04:28 PM
  6. Making MonthView default to today's date or leave blank
    By raehippychick in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2008, 11:30 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