Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Chetoos
 
Posts: n/a
Default Date last update for the file

Dear experts;

Would you please i wanat to insert the date in a cell , but that
date i wanat it last update for the file ; i mean when the file changed
(updated with new info); i want the cell changed outomatically with last date
of updates; other wise the cell snad still as it be;

Many thanks for your time ;
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default


'-----------------------------------------------------------------
Function DocProps(prop As String)
'-----------------------------------------------------------------
Application.Volatile
On Error GoTo err_value
DocProps = ActiveWorkbook.BuiltinDocument*Properties _
(prop)
Exit Function
err_value:
DocProps = CVErr(xlErrValue)
End Function


and enter in a cell such as
=DocProps ("last save time")


This will not update when you save within Excel. If you need this, add

Option Explicit

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, _
Cancel As Boolean)
Application.EnableEvents = False
Cancel = True
ActiveWorkbook.Save
Application.CalculateFull
wb_exit:
Application.EnableEvents = True
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Chetoos" wrote in message
...
Dear experts;

Would you please i wanat to insert the date in a cell , but

that
date i wanat it last update for the file ; i mean when the file changed
(updated with new info); i want the cell changed outomatically with last

date
of updates; other wise the cell snad still as it be;

Many thanks for your time ;



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
update a closed file via links Rob Robbins Excel Discussion (Misc queries) 2 July 13th 05 09:25 PM
Update cell based on date range deversole Excel Discussion (Misc queries) 3 July 6th 05 01:58 PM
how do I show last date file saved? Pete Excel Worksheet Functions 1 February 17th 05 06:25 PM
How do I insert the date the file was saved in the MS Excel foote. kacate Excel Discussion (Misc queries) 2 January 31st 05 09:11 PM
File asks to update when no links were created Dave Links and Linking in Excel 1 December 16th 04 08:10 PM


All times are GMT +1. The time now is 11:19 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"