Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Custom Document Properties - Last Calculation Date

Tim

Thanks for your help and time - absolutely spot on and just what I needed!

--
Zani
(if I have posted here, I really am stuck!)



"Tim Barlow" wrote:

Zani,

You can use the calculate event to detemine when each sheet was last
calculated - e.g. the following puts the date & time on sheet that was
re-calculated

This one in the 'ThisWorkbook' module to capture all re-calculations:

Private Sub Workbook_SheetCalculate(ByVal Sh As Object)
Sh.Range("A1") = Format(Now(), "dd mmm yy")
Sh.Range("A2") = Format(Now(), "hh:mm")
End Sub

Or this one in the Sheet module to capture re-calculations on that sheet
only:

Private Sub Worksheet_Calculate()
Me.Range("A1") = Format(Now(), "dd mmm yy")
Me.Range("A2") = Format(Now(), "hh:mm")
End Sub

You could also use the Workbook_SheetChange or the Worksheet_Change events
to get the time of the last modification.

HTH

Tim


"Zani" wrote in message
...
Hi

I would like to include in my project details on document properties such

as
last date saved (which I understand is a standard document property) but I
would also like to include a date for the last time the spreadsheet was
"calculated". I have turned off automatic calculations during
updating/adding records and on saving. The reports that are produced form
the calculations are not always needed so I only want to calculate them

when
the user needs them. Therefore I would like to be able to display on a
userform, the last date and time the spreadsheet was amended (ie records
added) and the last date and time it was calculated. Is this possible

with
Custom document Properties does any body know?!?!
--
Zani
(if I have posted here, I really am stuck!)




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
Properties of a document, help! Jason Excel Worksheet Functions 2 February 24th 06 10:47 AM
How can I using Excel custom document properties in the header? ecalvo Excel Worksheet Functions 4 November 3rd 05 09:29 PM
Accessing custom document properties in Word? quartz[_2_] Excel Programming 1 January 19th 05 02:27 AM
accessing custom document properties without loading file [email protected] Excel Programming 2 September 30th 04 01:47 AM
Accessing custom document properties Tim Haley Excel Programming 2 September 6th 03 02:34 AM


All times are GMT +1. The time now is 11:51 PM.

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

About Us

"It's about Microsoft Excel"