Minggu, 04 Januari 2015

RE: [ExcelVBA] reference of source file information

 

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:

http://msdn.microsoft.com/en-us/library/microsoft.office.tools.excel.workbook.builtindocumentproperties.aspx

 

 

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: "Tim Lewis" <twlewis@reagan.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)
----------------------------------
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:

Poskan Komentar