PC Review


Reply
Thread Tools Rate Thread

How to display create date for the workbook in a cell.

 
 
geniusideas
Guest
Posts: n/a
 
      1st Mar 2007
Normally when we use =now() formula in excel it will show you current
date. This time I wanted to show prevoius modified or last save date
in a cell. What command or VBA code to be use. Anybody can help pls...

http://microsoft-excel-macro.blogspot.com

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      1st Mar 2007
'-----------------------------------------------------------------
Function DocProps(prop As String)
'-----------------------------------------------------------------
Application.Volatile
On Error GoTo err_value
DocProps = ActiveWorkbook.BuiltinDocument*Properties(prop)
Exit Function
err_value:
DocProps = CVErr(xlErrValue)
End Function


and enter in a cell such as
=DocProps ("last author")
or
=DocProps ("last save time")


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"geniusideas" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Normally when we use =now() formula in excel it will show you current
> date. This time I wanted to show prevoius modified or last save date
> in a cell. What command or VBA code to be use. Anybody can help pls...
>
> http://microsoft-excel-macro.blogspot.com
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get correct Workbook Create date from VBA MikeZz Microsoft Excel Programming 1 19th Mar 2008 07:53 PM
Display last date workbook was modified? =?Utf-8?B?bWFueG1hbg==?= Microsoft Excel Misc 1 21st Jul 2006 07:25 AM
Workbook Create Date fx =?Utf-8?B?Y2xvd25z?= Microsoft Excel Worksheet Functions 0 18th Jul 2006 10:05 PM
Default display of sample date in linked workbook with blank date in source cell Barbara Martens Microsoft Excel Worksheet Functions 2 15th Apr 2004 10:15 PM
Display last date edited in workbook kathy Microsoft Excel Programming 1 29th Jan 2004 12:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:24 PM.