Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
dot dot is offline
external usenet poster
 
Posts: 29
Default Time & Date Stamp 2 worksheets

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?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Time & Date Stamp 2 worksheets

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

On Fri, 8 Sep 2006 11:10:02 -0700, dot wrote:

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?


  #3   Report Post  
Posted to microsoft.public.excel.misc
dot dot is offline
external usenet poster
 
Posts: 29
Default Time & Date Stamp 2 worksheets

Thanks, Exactly what I was trying to do. Very Helpful

"Gord Dibben" wrote:

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

On Fri, 8 Sep 2006 11:10:02 -0700, dot wrote:

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?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Separating date from a Date & Time stamp JT Excel Discussion (Misc queries) 9 June 10th 08 05:55 PM
Mileage Claim Formula johndavies New Users to Excel 4 August 14th 06 09:24 AM
convert interval to various separate date , time, hr, minutes Todd F. Excel Worksheet Functions 4 July 12th 05 07:25 PM
help with date and time wayne visser Excel Worksheet Functions 1 June 14th 05 04:10 PM
Automatically enter date and time but only update once. PM New Users to Excel 3 January 21st 05 07:47 AM


All times are GMT +1. The time now is 07:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"