+ Reply to Thread
Results 1 to 4 of 4

Userform date

Hybrid View

  1. #1
    Registered User
    Join Date
    09-01-2009
    Location
    New Orleans
    MS-Off Ver
    Excel 2007
    Posts
    2

    Userform date

    Userform: I want to automatically add in the date that the entry was made into the userform. When user clicks enter, the information moves to a spreadsheet. I want an automatic date to appear in a column in the spreadsheet to track the entry.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Userform date

    Adjust this to suit
    Cells(1,1).Value=Date
    Last edited by royUK; 12-21-2009 at 04:06 PM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    Microsoft 365
    Posts
    375

    Re: Userform date

    An interesting use of "Timestamping" can be found here http://chandoo.org/wp/2009/01/08/tim...-formula-help/
    Click here to read the Forum Rules
    Whatever it is in life you decide to go after, go after with great ferocity.

  4. #4
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: Userform date

    Hi

    A couple of lines of code like

    Let Cells(1, 1).Value = Now
    Let Cells(1, 1).NumberFormat = "mm/dd/yy"
    The first line inserts the current date and the second formats the appearance.

    Regards

    Jeff

+ 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