Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Is there a "last saved on date/user" macro/function for Excel 2003

Hi, I am trying my best to locate a macro or whatever to create a "Last saved
on (&date)" entry on my Excel spreadsheet.

If it is possible to add the last user's name that would be great too! I
looked through this forum and was unable to find a direct example. If you
know how to do this, please provide the code/macro and whatever instructions
you can.

THANKS!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default Is there a "last saved on date/user" macro/function for Excel 2003

Private Sub Workbook_BeforeClose(Cancel As Boolean)

With ThisWorkbook
With Worksheets("Sheet1")
.Range("A1").Value = Environ("UserName")
.Range("A2").Value Format( _
ThisWorkbook.BuiltinDocumentProperties( _
"last save time"), " dd mmm yyyy hh:mm:ss")
End With
.Save
End With

End Sub


--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Zliz" wrote in message
...
Hi, I am trying my best to locate a macro or whatever to create a "Last
saved
on (&date)" entry on my Excel spreadsheet.

If it is possible to add the last user's name that would be great too! I
looked through this forum and was unable to find a direct example. If you
know how to do this, please provide the code/macro and whatever
instructions
you can.

THANKS!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Is there a "last saved on date/user" macro/function for Excel 2003

Give this code a whirl...

With ThisWorkbook
MsgBox .BuiltinDocumentProperties("Last Save Time")
MsgBox .BuiltinDocumentProperties("Last Author")
End With

And maybe give this a look...
http://msdn2.microsoft.com/ru-ru/lib...es(VS.80).aspx
--
HTH...

Jim Thomlinson


"Zliz" wrote:

Hi, I am trying my best to locate a macro or whatever to create a "Last saved
on (&date)" entry on my Excel spreadsheet.

If it is possible to add the last user's name that would be great too! I
looked through this forum and was unable to find a direct example. If you
know how to do this, please provide the code/macro and whatever instructions
you can.

THANKS!

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Problems using Excel 2000 to open/save file saved in Excel 2003 [email protected] Excel Discussion (Misc queries) 1 June 29th 05 02:50 AM
update row numbers after different active cells in macros followi. LMIV Excel Discussion (Misc queries) 11 February 16th 05 12:44 AM
open saved query in Excel 2003 jaylou Excel Discussion (Misc queries) 1 November 29th 04 06:41 PM
Office 2003 will not view interactive Worksheet saved as a web pa. Javier Colunga Excel Worksheet Functions 0 November 10th 04 10:59 PM


All times are GMT +1. The time now is 02:17 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"