#1   Report Post  
Posted to microsoft.public.excel.misc
tommy20
 
Posts: n/a
Default Automatic Saved Date


This sounds awfully basic, but for the life of me, I can't figure out
how to do it.

I would like the date at the top of my spreadsheet to reflect the last
save date for the file. Isn't there a function that will handle this?


--
tommy20
------------------------------------------------------------------------
tommy20's Profile: http://www.excelforum.com/member.php...fo&userid=2817
View this thread: http://www.excelforum.com/showthread...hreadid=528191

  #2   Report Post  
Posted to microsoft.public.excel.misc
Jim Cone
 
Posts: n/a
Default Automatic Saved Date

There is no built-in function to do this.
A user designed function (UDF) is necessary.
'--------------------
'Place the following code in the "ThisWorkbook" module...

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Application.OnTime Now, ThisWorkbook.Name & "!TimeSaved"
End Sub

'Place the following code in a standard module...

Sub TimeSaved()
Dim strPath As String
strPath = ActiveWorkbook.Path
Range("B4").Value = "Last saved: " & FileDateTime(strPath)
End Sub
'--------------------

Every time the workbook is saved, the saved date and time will appear
in Cell B4 on the currently active sheet.

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"tommy20" wrote in message...
This sounds awfully basic, but for the life of me, I can't figure out
how to do it.
I would like the date at the top of my spreadsheet to reflect the last
save date for the file. Isn't there a function that will handle this?

  #3   Report Post  
Posted to microsoft.public.excel.misc
tommy20
 
Posts: n/a
Default Automatic Saved Date


UDF, eh? Well, that'll sure be unknown territory for me. I'll give it
a shot.

Thanks!


--
tommy20
------------------------------------------------------------------------
tommy20's Profile: http://www.excelforum.com/member.php...fo&userid=2817
View this thread: http://www.excelforum.com/showthread...hreadid=528191

  #4   Report Post  
Posted to microsoft.public.excel.misc
Jim Cone
 
Posts: n/a
Default Automatic Saved Date

This could be of assistance...
http://www.mvps.org/dmcritchie/excel/getstarted.htm
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"tommy20"wrote in message
...
UDF, eh? Well, that'll sure be unknown territory for me.
I'll give it a shot.
Thanks!
tommy20

  #5   Report Post  
Posted to microsoft.public.excel.misc
Jim Cone
 
Posts: n/a
Default Automatic Saved Date

The code I gave you has some problems when the
workbook is closed. Also, technically it is not a
user designed function. The following code placed
in a standard module should do what you want.
It will update every time the workbook is recalculated.
To use it, in a cell just enter ...
= timesaved()

Jim Cone

'--------------------------
Function TimeSaved()
Application.Volatile
Dim strPath As String
strPath = ActiveWorkbook.Path
TimeSaved = "Last saved: " & FileDateTime(strPath)
End Function

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
Insert Automatic, Non-Updating Date Stamp Ken Zenachon Excel Discussion (Misc queries) 8 January 18th 06 06:52 PM
Automatic Date Entry Neil Excel Worksheet Functions 1 August 22nd 05 09:47 PM
search for latest date Sue Excel Worksheet Functions 2 August 2nd 05 11:09 PM
How do I stop today() from updating date on saved spreadsheets? lionmark Excel Discussion (Misc queries) 2 January 4th 05 01:03 AM
store file saved date in cell Martin Connelly Excel Worksheet Functions 1 November 16th 04 01:32 PM


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

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"