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

Dear all,

What is the Excel command to display the date the file was
last saved?

Many thanks

Kevin
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default date last saved

Hi Kevin

ActiveCell.Value = ActiveWorkbook.BuiltinDocumentProperties("Last Save Time")

Here is a example for printing
http://www.rondebruin.nl/print.htm#Saved

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Kevin Smith" wrote in message ...
Dear all,

What is the Excel command to display the date the file was
last saved?

Many thanks

Kevin



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default date last saved

Thanks for this. I was after an Excel command rather that
VBA script.

Thanks

Kevin

-----Original Message-----
Hi Kevin

ActiveCell.Value =

ActiveWorkbook.BuiltinDocumentProperties("Last Save Time")

Here is a example for printing
http://www.rondebruin.nl/print.htm#Saved

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Kevin Smith" wrote in

message ...
Dear all,

What is the Excel command to display the date the file

was
last saved?

Many thanks

Kevin



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default date last saved

I was after an Excel command
Don't exist

Bob have posted this function
You can use it in a worksheet cell then

use the following UDF (only on workbook level):

Function DocProps(prop As String)
application.volatile
On Error GoTo err_value
DocProps = ActiveWorkbook.BuiltinDocumentProperties _
(prop)
Exit Function
err_value:
DocProps = CVErr(xlErrValue)
End Function

and enter in a cell
=DOCPROPS("last save time")
(format cell as date)

for more about UDFs see:
http://www.mvps.org/dmcritchie/excel/getstarted.htm



--
Regards Ron de Bruin
http://www.rondebruin.nl


"Kevin Smith" wrote in message ...
Thanks for this. I was after an Excel command rather that
VBA script.

Thanks

Kevin

-----Original Message-----
Hi Kevin

ActiveCell.Value =

ActiveWorkbook.BuiltinDocumentProperties("Last Save Time")

Here is a example for printing
http://www.rondebruin.nl/print.htm#Saved

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Kevin Smith" wrote in

message ...
Dear all,

What is the Excel command to display the date the file

was
last saved?

Many thanks

Kevin



.



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
Date open file with date saved Rita Excel Worksheet Functions 3 April 23rd 09 03:13 PM
Last Date Saved Techy DuWright Setting up and Configuration of Excel 1 April 2nd 09 03:51 PM
Last Saved Date Sloth Excel Discussion (Misc queries) 3 December 1st 05 03:48 PM
Date in userform being saved as general not date which affects sor Michael Malinsky[_3_] Excel Programming 0 July 28th 04 06:58 PM
Date Last Saved Craig[_6_] Excel Programming 3 August 29th 03 03:30 PM


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