Editing Macro Into A Timer

Joined
Sep 29, 2011
Messages
1
Hello! I'm still very new to macros and excel and right now, I've been using: Private Sub Worksheet_Change(ByVal Target As Range) Dim x As Long x = Target.Row If Target.Column = 2 And Cells(x, 2) <> "" Then Cells(x, 1) = Time Cells(x, 1).NumberFormat = "hh:mm:ss" End If End Sub Since the time was based off the clock from my computer, I was wondering if there way to just change the time portion into a timer, whose beginning time I can modify and continue the counting up from where I left off? I'm not very good with explaining, so this example will most likely be a little clearer: For example: I want my start time to be 00:02:00 and the amount of time passed since then to be placed in column A. As I type data/observations/etc. into column B, the timer will automatically input the time since then. Any help is GREATLY APPRECIATED!!! Thank you so much!

The code came from someone, I forgot who, so just saying to credit them, just in case they felt offended.
 
Last edited:

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top