Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default When last saved?


Is there a way to pull a timestamp from an excel spreadsheet for whe
that spreadsheet was last saved?

If not? Is there a way to have excel update a timestamp cell PRIOR t
every time the spreadsheet gets saved?

Or even a VBA macro which runs prior to a save?

Basicaly I need a way to reliably pull the time stamp from when
spreadsheet was last saved.

Any thoughts

--
ph
-----------------------------------------------------------------------
ph8's Profile: http://www.excelforum.com/member.php...fo&userid=1987
View this thread: http://www.excelforum.com/showthread.php?threadid=51578

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default When last saved?

Try this line...

MsgBox ThisWorkbook.BuiltinDocumentProperties("Last save time")
--
HTH...

Jim Thomlinson


"ph8" wrote:


Is there a way to pull a timestamp from an excel spreadsheet for when
that spreadsheet was last saved?

If not? Is there a way to have excel update a timestamp cell PRIOR to
every time the spreadsheet gets saved?

Or even a VBA macro which runs prior to a save?

Basicaly I need a way to reliably pull the time stamp from when a
spreadsheet was last saved.

Any thoughts?


--
ph8
------------------------------------------------------------------------
ph8's Profile: http://www.excelforum.com/member.php...o&userid=19871
View this thread: http://www.excelforum.com/showthread...hreadid=515783


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default When last saved?


Perfect. Thanks Jim!

Now one more question, is there a way for an excel formula to return
the same result?


--
ph8
------------------------------------------------------------------------
ph8's Profile: http://www.excelforum.com/member.php...o&userid=19871
View this thread: http://www.excelforum.com/showthread...hreadid=515783

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default When last saved?

You could make a function out of Jim Thomlinson's code and call the
function in a cell.
Function strSaveDate() As String
If Len(ThisWorkbook.Path) < 0 Then
strSaveDate = ThisWorkbook.BuiltinDocumentProperties("Last save
time")
Else
strSaveDate = "Not saved"
End If
End Function
A1 = "=strSaveDate()"

The path test is used to determine the file exists--I'm sure there's a
better way.

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
How do I recover an Excel document saved not saved as Darryl Excel Discussion (Misc queries) 6 January 5th 10 03:39 AM
i "saved" instead of "saved as". I need old file back KD Excel Discussion (Misc queries) 5 October 13th 09 08:32 AM
Files saved as csv files are actually saved as text files? Queen_Of_Thebes[_2_] Excel Discussion (Misc queries) 2 May 19th 09 03:04 PM
How can I see a copy of a saved workbook before I saved it again? Norma Excel Worksheet Functions 2 May 11th 05 10:31 AM
How to get saved old saved work that was saved over? Maral Excel Discussion (Misc queries) 1 February 20th 05 08:59 PM


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