+ Reply to Thread
Results 1 to 3 of 3

Problems with using Time Stamp...

  1. #1
    Registered User
    Join Date
    11-04-2008
    Location
    London
    Posts
    20

    Problems with using Time Stamp...

    Hi, i have been using this code to time stamp a particular cell:

    Please Login or Register  to view this content.
    The only trouble with this code was that it copied over whatever was in the selected cell... So someone helped me out with code that just adds to the selected cell which is much simpler:

    Please Login or Register  to view this content.
    Now my problem is i need to do a calculation on these dates... With the old code i was able to minus one date from the other to get a number (of days)... with the new code ... when i do the same calculation i just get #VALUE!

    Is there a way to get this working? also the old code did not display the seconds in the cell... (but it did display them in the bar at the top)... with the new code it displays the seconds in the cell (which i didnt want) and even if i format the cell to DD/MM/YYYY HH:MM... it still displays seconds can anyone help?

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You can't use the cell's contents in a formula using your present code.

    Why do you ClearComments/ You could add a cell comment to hold the stamp
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    11-04-2008
    Location
    London
    Posts
    20
    Thanks, i had been doing that at the start using code to stamp into the comments box. But my problem is that i need to do some calculations on the dates... i need to minus one date from the other to work out the days taken... now i only need one date in the cell.... and with the old timestamp code that worked... with my new one it doesnt... anyone have any ideas?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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