+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Forum Contributor
    Join Date
    02-12-2010
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    111

    how to change the value of DTPicker

    hi
    pl help on changing the property of "DTPicker" as u can see it's 3/18/2010 instead of this it should display Today's date
    thanks in advance
    Attached Files Attached Files
    Last edited by jay11; 03-19-2010 at 01:59 PM.

  2. #2
    Forum Moderator dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003 & 2007
    Posts
    3,661

    Smile Re: how to change the value of DTPicker

    Good afternoon jay11
    Quote Originally Posted by jay11 View Post
    pl help on changing the property of "DTPicker" as u can see it's 3/18/2010 instead of this it should display Today's date
    Replace your Initialize routine with this piece of code :
    Code:
    Private Sub UserForm_Initialize()
        Me.CombTicker.RowSource = "Ticker"
        Me.txtcommission = 7
        DTPicker1.Value = Now()
    End Sub
    HTH

    DominicB
    Now available : Ultimate Add-In 2007
    Integrates directly into the Office Excel Ribbon


    Download Ultimate Add-In v1.52 from www.dom-and-lis.co.uk
    90+ Utilities, 200+ Sub utilities last updated 25th April 2008
    Free!!

  3. #3
    Forum Contributor
    Join Date
    02-12-2010
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    111

    Re: how to change the value of DTPicker

    thanks DominicB
    that was quick as always

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.2.0