ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   automatically add date/time stamp to field? (https://www.excelbanter.com/excel-programming/355682-automatically-add-date-time-stamp-field.html)

[email protected]

automatically add date/time stamp to field?
 
I know that you can use the =now() function to put a date/time stamp
into a field in Excel. The problem with this is anytime you open the
document, edit a field, etc. all the now() functions execute. I want
to be able to easily create a date/time stamp in a field, but I don't
want it to ever update unless I repeat this same operation in the
field. Maybe a macro that could be connected to a button on a toolbar?
Any ideas on how to do this would be greatly appreciated.

Thanks!


Carim[_3_]

automatically add date/time stamp to field?
 
Hi,

A solution is to input your date/time stamp, whenever needed in the
cell 's Comment ...

HTH
Cheers
Carim


AA2e72E

automatically add date/time stamp to field?
 
Press Ctrl + ; in a cell to insert the date or Ctrl : to insert the time. The
values will NOT update.

" wrote:

I know that you can use the =now() function to put a date/time stamp
into a field in Excel. The problem with this is anytime you open the
document, edit a field, etc. all the now() functions execute. I want
to be able to easily create a date/time stamp in a field, but I don't
want it to ever update unless I repeat this same operation in the
field. Maybe a macro that could be connected to a button on a toolbar?
Any ideas on how to do this would be greatly appreciated.

Thanks!



Carim[_3_]

automatically add date/time stamp to field?
 
Hi,

Found an old "stamp" ....

Sub MacroStamp()
Dim Stamp As String
Dim Str As String
Str = Format(Time, "hh:mm:ss AMPM")
Stamp = Format(Date, "Long Date") & " at " & Str
Selection.AddComment
Selection.Comment.Text Text:=Stamp
Selection.Select
End Sub

HTH
Cheers
Carim


somethinglikeant

automatically add date/time stamp to field?
 
If you simply want the date and time etc in the activecell

Sub StampNow()
ActiveCell.Value = Now()
ActiveCell.Copy
ActiveCell.PasteSpecial (xlPasteValues)
Calculate
CutCopyMode = False
End Sub

'somethinglikeant


JE McGimpsey

automatically add date/time stamp to field?
 
Take a look he

http://www.mcgimpsey.com/excel/timestamp.html


In article .com,
wrote:

I know that you can use the =now() function to put a date/time stamp
into a field in Excel. The problem with this is anytime you open the
document, edit a field, etc. all the now() functions execute. I want
to be able to easily create a date/time stamp in a field, but I don't
want it to ever update unless I repeat this same operation in the
field. Maybe a macro that could be connected to a button on a toolbar?
Any ideas on how to do this would be greatly appreciated.

Thanks!



All times are GMT +1. The time now is 04:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com