Time & Date Stamp 2 worksheets

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a cell on 1 worksheet for time and date stamp along with other data.
I went to tools, options, calculations, and set it to manual. This puts the
latest date and time in the cell when saved. My issue is that my spreadsheet
has 2 tabs. My data on my second tab does not auto reference until I save
the document. Can I have one worksheet update automatically and the other
update manually?
 
Dot

I saw your earlier thread about using manual calculation and the TODAY()
function and understand what you want to achieve.

This is not a good idea as eventually the sheet will calculate and your TODAY()
will update.

You would be better off to use some before save code that inserts a static date
only when you save the workbook.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, _
Cancel As Boolean)
ActiveSheet.Range("A1").Value = Format(Now, "dd mmm yyyy hh:mm:ss")
End Sub

Right-click on the Excel Icon left of "File" on the main menu and select "View
Code"

Paste the above code into that module.

Save your workbook and the date and time will be inserted to A1 of the active
sheet.

You can edit the A1 to any cell you wish.

You could also change activesheet to Sheets("Sheet1") or any sheetname you wish.


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Date stamp user 7
Auto Stamp Date 13
Automatic date stamping 16
Time/Date Stamp 3
Pivot Table date format 1
Time Stamp 8
Date Stamp 7
if/then insert date but don't want automatic updates 7

Back
Top