Put these 2 procedures in the sheet's code module :-
Private Sub Worksheet_Calculate()
Range("A1") = Now()
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
Range("A1") = Now()
End Sub
I must be stupid - I did as you instructed, and also found a few other procedures similar to yours (on this page - further down) but I don't see any result!?
What the...???
Am I supposed to compile these some how? Sorry - I'm not a VB guy. I'm a software engineer - but don't play with MS products.
Thanks much in advance!!!
Mark.
I even figured out to compile them - still, I see nothing in any of my three sheets!
What's the problem here...
I'm on AIM <Luv2CatchBass>
Mark
Copy the two procedures
Right click on the sheet tab
Select View Code
Paste the procedures onto the window on the right-hand side
I did that - I see nothing on my sheet - the code is there - nothing in A1.
Mark.
Make sure the code is in the Sheet's code module, not in a normal code module.
Also, for a date/time to appear in A1, an input from the keyboard has to be made to the sheet or a formula(or link) has to be updated/calculated.
Also, for a date/time to appear in A1, an input from the keyboard has to be made to the sheet or a formula(or link) has to be updated/calculated.
--- Just for the record, the problem was with my Macro Security Settings - It was High - and that's no good. (well - it's good, but it prevented your code from running on my machine!) I set it to Med, restarted Excel and it all works as advertised... So next time you can tell the person it will work if the macros securtiy setting is NOT set to High...
Thanks for the code though!
Mark.