+ Reply to Thread
Results 1 to 4 of 4

Code to show creation date & time

  1. #1
    Registered User
    Join Date
    08-29-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    84

    Code to show creation date & time

    Hi,

    I can use =now() to show the current date and time but obviously this chages each time the workbook is opened. I want a cell to show the creation date and time. Upon saving I do not want this date and time to change again. Is it possible to write code for this?

  2. #2
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Code to show creation date & time

    Try inserting this macro in VBA Editor under This Workbook
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-29-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    84

    Re: Code to show creation date & time

    This works if I put =now() into the cell but I want to save my workbook as a template. I want this cell to be blank then generate the current date time when the workbook is amended. Say a cell value changes for example. sorry if i did not make this clear enough in my first post.

  4. #4
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Code to show creation date & time

    Then change the code to this:
    Please Login or Register  to view this content.
    THis inserts the date and time in cell A10

+ 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