home *** CD-ROM | disk | FTP | other *** search
- Attribute VB_Name = "CheckProperties"
- Option Explicit
-
- Private Sub CheckWhenPrinted()
- Dim vntLastPrinted As Variant
-
- On Error Resume Next
- vntLastPrinted = ActiveDocument.BuiltInDocumentProperties![Last print date]
-
- If Err.Number <> 0 Then
-
- If Err.Number = &H80004005 Then
- vntLastPrinted = Null
- Else
- Err.Raise Err.Number
- End If
-
- End If
-
- On Error GoTo 0
-
- If IsNull(vntLastPrinted) Then
- MsgBox "Never Printed!", vbInformation + vbOKOnly
- Else
- MsgBox "Last Printed " & vntLastPrinted, vbInformation + vbOKOnly
- End If
-
- End Sub
-
-