VBA Time Stamp When Cell Changes.

alexfooty

Board Regular
Joined
Dec 30, 2018
Messages
97
Office Version
  1. 2016
Platform
  1. Windows
Quite simply, if the value in cell I13 in a worksheet changes I would like a date & time stamp to appear in cell M8 which updates every time cell I13 changes.
Many thanks and Merry Christmas to you all.
 
Tried inserting code at end of the macro - no joy.
My existing macro is just one that I simply recorded of the steps I went through.
VBA Code:
Sheets("Medication").Select
    Range("B1").Select
    Application.CutCopyMode = False
    ActiveCell.FormulaR1C1 = "=R[2]C[-1]+RC[-1]"
    Range("B1").Select
    Selection.Copy
    Range("A3").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
    Columns("A:A").Select
    Selection.EntireColumn.Hidden = True
    Columns("E:E").Select
    Selection.EntireColumn.Hidden = True
    Range("B1").Select
    Application.CutCopyMode = False
    Selection.ClearContents
        Range("B1").Select
 
Last edited by a moderator:
Upvote 0

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Thanks for that, but it's only part of the code & doesn't show where you are changing I13
 
Upvote 0
I need to start this reply with a sincere apology. It's a long time since I set this worksheet up.
On close examination of the cells involved, cell I13 actuall contains a formula "=D3-E52" which results in cell I13 increasing by "1"
Not sure if this is any help at all.
Sorry for messing you around (it's my age!!!)
 
Upvote 0
VBA Code:
Sheets("change_to_target_worksheetname").Range("M8") = Format(Now, "d/m/yyyy HH:MM:SS")
 
Upvote 0
The cell I13 contains the formula "=D3-E52". If the cell increases by one nothing happens to the timestamp in M8. However, if I delete the formula from I13 the datestamp changes!!
 
Upvote 0
Everyone appears to have given up. Can't say I'm surprised.

To recap - Cell I13 contains a simple formula '=D3-E52'. Each time the value in cell I13 changes, I would like a date & time stamp to appear in cell M8 which updates every time cell I13 changes.
Anyone still interested?
 
Upvote 0
Obviously there's no-one interested in solving this problem Ah well....
This is the first time that Mr Excel has failed to come up with a solution to any of my questions.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,700
Members
448,979
Latest member
DET4492

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