Archive of Mr Excel Message Board


Back to Forms in Excel VBA archive index
Back to archive home

"Last Saved" time

Posted by Bobbi on January 18, 2002 10:09 AM
I need to replace the current time in a macro to display the time the document was last saved. What code do I use to replace the "&T" so it will work?

Thanks.


Re: "Last Saved" time

Posted by Gary Bailey on January 18, 2002 12:09 PM
You could try

FileDateTime(ActiveWorkbook.FullName)

Gary


This archive is from the original message board at www.MrExcel.com.
All contents © 1998-2004 MrExcel.com.
Visit our online store to buy searchable CD's with thousands of VBA and Excel answers.
Microsoft Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.