+ Reply to Thread
Results 1 to 13 of 13

Tim and date stamps for a checklist

  1. #1
    Registered User
    Join Date
    02-21-2014
    Location
    Copenhagen
    MS-Off Ver
    Excel 2010
    Posts
    7

    Tim and date stamps for a checklist

    Hello

    I have looked around the forum for a possible solution to my problem, but either have not looked hard enough or i am unable to recognize the solution.

    I want time and date (as of the time of clicking) when i click a checkbox in one cell to appear, and stay unchanged, in another cell. When it is not checked, or if it is unchecked again, the date and time have to disappear. And if clicked again, a new date and time set (as of the time of the new click) has to appear.

    I have tried this solution:



    A2 Format control (of CheckBox) -> Cell link set to:
    $B$2

    C2 (wherein time+date needed) set to
    =IF(B2=TRUE;NOW();"")


    But the now function is literally "now" i have discovered, and keeps the date and time updated to actual time. I need it to keep the time from when the checkbox was clicked

    hope it is not too convoluted a description.

    Thanks
    Rene
    Last edited by rkj1966; 02-21-2014 at 07:07 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Tim and date stamps for a checklist

    Put this in the worksheet code module. Any changes to column B will be time and date stamped in column C

    Please Login or Register  to view this content.
    Elegant Simplicity............. Not Always

  3. #3
    Registered User
    Join Date
    02-21-2014
    Location
    Copenhagen
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Tim and date stamps for a checklist

    Thx for reply :-)
    Sorry i am not an experience excel user. Where do i find the "worksheet code module" ??

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Tim and date stamps for a checklist

    Right click on the worksheet tab and select "View Code"

  5. #5
    Forum Contributor
    Join Date
    12-09-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    171

    Re: Tim and date stamps for a checklist

    ALT+F11 and the click on the respective sheet (from the left hand side window - Project Explorer)

    and then place the code suggested..
    Like my answer, then click * below

  6. #6
    Registered User
    Join Date
    10-04-2013
    Location
    Bornholm, Danmark
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Tim and date stamps for a checklist

    Hej skal den gemme på det tidspunkt når du klikker på en bestemt celle

  7. #7
    Registered User
    Join Date
    02-21-2014
    Location
    Copenhagen
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Tim and date stamps for a checklist

    Ja, når jeg klikker en checkbox, så skal tidspunkt (og også gerne dato) skives i et andet felt og dette skal som tekst, forblive uændret

  8. #8
    Registered User
    Join Date
    02-21-2014
    Location
    Copenhagen
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Tim and date stamps for a checklist

    AndyLitch. thanks for suggestion. I cannot get it to work. I put it in the code for the checklist-tab, where i want it to work. i think the problem is that the checkbox object kind of is not integrated in the B coloumn but kind of just flows over it. And if i make a change in the B coloumn below it gives an error and highlihts the first line in the code

  9. #9
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Tim and date stamps for a checklist

    Ex1.xlsm

    Try the attached example ...

  10. #10
    Registered User
    Join Date
    02-21-2014
    Location
    Copenhagen
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Tim and date stamps for a checklist

    Thanks a lot ... i will use that one :-)

  11. #11
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Tim and date stamps for a checklist

    Your're welcome... Can you mark the thread as solved pls

  12. #12
    Registered User
    Join Date
    02-21-2014
    Location
    Copenhagen
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Tim and date stamps for a checklist

    Sure .. thanks to all

  13. #13
    Registered User
    Join Date
    02-21-2014
    Location
    Copenhagen
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Tim and date stamps for a checklist

    Andylitch
    A detail that i needed, which your code does not support (AFAIK) is that when/if the B coloumn cells are removed the date in the corresponding C cell does not disappear. It will stay visible and change if new data is entered in B. Can that be added? I do not know how or if it is possible !

+ 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] Graph using date stamps with empty cells
    By AnnieMcken in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-20-2014, 05:03 PM
  2. [SOLVED] Need multiple date stamps in ColA
    By roothog in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-10-2013, 08:21 PM
  3. Excel 2007 : Difference between two Date Time Stamps
    By Sedlacek2001 in forum Excel General
    Replies: 3
    Last Post: 05-15-2012, 11:12 AM
  4. Date Stamps For Excel 2007
    By joselves in forum Excel General
    Replies: 1
    Last Post: 12-06-2007, 01:32 PM
  5. Hours difference between 2 Date & Time stamps
    By bondi26 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-21-2007, 10:24 PM

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