Minggu, 04 Januari 2015

Re: [ExcelVBA] reference of source file information

 

Thank you Tim,


I don't know if this is what Tayyab needed. 
But I am very happy to learn this.

I guess not all properties listed in the link that you gave apply to Excel, but I guess it can be very useful.

Too bad there is not a property that gives the password to unlock a code… (joking)

Louise

Le 2015-01-04 à 12:07, 'Tim Lewis' twlewis@reagan.com [ExcelVBA] <ExcelVBA@yahoogroups.com> a écrit :



Tayyab, I may be way off track of what you are looking for.  Are you looking for the document properties of the active workbook?  If so, this will get them:
 
Public Sub GetDocumentProperties()
    Dim strTitle As String, strLastAuthor As String, strDateLastSaved As String
   
    strTitle = ActiveWorkbook.BuiltinDocumentProperties("Title")
    strLastAuthor = ActiveWorkbook.BuiltinDocumentProperties("Last Author")
    strDateLastSaved = ActiveWorkbook.BuiltinDocumentProperties("Last save Time")
 
    MsgBox "Title: " & strTitle & vbCrLf & _
        "Last Author:" & strLastAuthor & vbCrLf & _
        "Last Saved:" & strDateLastSaved
End Sub
 
The entire list of property names can be found at:
 
 
Tim
 
 
From: ExcelVBA@yahoogroups.com [mailto:ExcelVBA@yahoogroups.com] 
Sent: Sunday, January 04, 2015 6:30 AM
To: ExcelVBA@yahoogroups.com
Subject: [ExcelVBA] reference of source file information
 
 
Dear All
Can excel saved source file information, in source workbook. if can where it will be available.
 
thanks
 
Regards
Tayyab



__._,_.___

Posted by: =?iso-8859-1?Q?Louise_Gari=E9py?= <garilou@cgocable.ca>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)
----------------------------------
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.

----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA

----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com

----------------------------------

.

__,_._,___

Tidak ada komentar:

Posting Komentar