+ Reply to Thread
Results 1 to 4 of 4

Putting time stamp into cell with single click

  1. #1
    Registered User
    Join Date
    02-19-2009
    Location
    Bentonville, AR
    MS-Off Ver
    Excel 2010
    Posts
    16

    Putting time stamp into cell with single click

    I have a spreadsheet to track times of certain milestones during a project and want to see if it is possible to have a macro that simply puts a time stamp into a cell when I click on it under the appropriate column and the appropriate row. See attached spreadsheet example. The cells involved are orangte colored that I am working with. Thanks in advance for any suggestions and help.
    Attached Files Attached Files

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Putting time stamp into cell with single click

    To run from a button
    Please Login or Register  to view this content.
    Or double click...Put in sheet module. Change range to suite
    Please Login or Register  to view this content.
    Last edited by sintek; 01-10-2018 at 03:32 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    02-19-2009
    Location
    Bentonville, AR
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Putting time stamp into cell with single click

    Sub TimeStamp()
    ActiveCell = Time
    End Sub

    Now based on this macro using a button, could it be possible to have the macro read the Start Time column and compensate for the time difference? In other words, when I click the button with the selected cell, it will give me the current time, which is CST. Is it possible that when I select the cell and then click the TimeStamp button, it will see what the Time Zone is in that particular row and show the time as it would, say for EST, an hour later, like instead of 10:45PM for CST it will show 11:45PM. Or if the row is showing that is is MST, it will show 9:45PM instead of 10:45PM when I click the TimeStamp button. Can this be done? Thanks.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Putting time stamp into cell with single click

    How is code supposed to know the time difference. 1 ahead or 1 behind..
    If you had a column that had +1 or -1 then this code would work...Assumes that column C houses values...
    Please Login or Register  to view this content.

+ 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. Time Stamp Active Cells and Record a History of Time Stamp and Active Cell Value
    By harishangaran in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-22-2017, 12:41 PM
  2. [SOLVED] Insert time stamp on double click
    By SuddenImpact in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2014, 09:55 AM
  3. Creating a VBA Code for if cell value ='s and Last Time Cell Update Time Date Stamp
    By Sixto2014 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-14-2014, 08:31 PM
  4. [SOLVED] I want to automatically update cell comments with time stamp last time cell changed
    By Med_MV in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2013, 02:35 AM
  5. Auto fill Date + Double click (time stamp)
    By SVTF in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-05-2012, 03:29 PM
  6. Replies: 2
    Last Post: 09-30-2010, 04:20 PM
  7. Replies: 3
    Last Post: 05-03-2006, 07:55 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