|
Visual Basic (VB6 and VBA) |
|
Copyright 1999-2001 Christopher Greaves. All rights reserved. Home Page and email to [email protected] |
| If in doubt, record a macro and inspect the entrails! |
Visual Basic Library
This page was last updated on Saturday, November 24, 2001
Public Function strDocumentStamp(doc As Document) As String ' Procedure: strDocumentStamp ' Description: Return string size/date/time stamp of a document. ' Copyright: Chris Greaves Inc. ' Inputs: DOCUMENT ' Returns: STRING ' Assumes: None. ' Side Effects: ' Tested: By the calls listed below. ' Method: ' Uses the file name and two document properties as a test ' Property 1: number of bytes ' Property 2: last save time Dim strResult As String ' Transient result strResult = "" strResult = strResult & strcINIFileDelimiter & doc.BuiltInDocumentProperties("Number Of Bytes") strResult = strResult & strcINIFileDelimiter & doc.BuiltInDocumentProperties("Last Save Time") strDocumentStamp = strResult 'Sub TESTstrDocumentStamp() 'MsgBox strDocumentStamp(ActiveDocument) 'End Sub End Function
| We all knew nothing when we started … |
|
Home Page and Contact Information Send email to [email protected]. This page was last updated Monday, November 19, 2001 |