Expand Minimize
This topic has not yet been rated - Rate this topic

Document.VBASigned Property (Word)

Published: July 16, 2012

True if the Microsoft Visual Basic for Applications (VBA) project for the specified document has been digitally signed. Read-only Boolean.

expression .VBASigned

expression A variable that represents a Document object.

This example loads a document called "Temp.doc" and tests to see whether or not it has a digital signature. If there is no digital signature, the example displays a warning message.

Documents.Open FileName:="C:\My Documents\Temp.doc" 
If ActiveDocument.VBASigned = False Then 
 MsgBox "Warning! This document " _ 
 & "has not been digitally signed.", _ 
 vbCritical, "Digital Signature Warning" 
End If

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.