Welcome toWord.Tips.Net
Ask a Word Question
Make a Comment
Learn Access Now
Free Printable Forms
Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips
Collapsing and Expanding Subdocuments
Starting with Word 2000, you could "digitally sign" your documents and templates with a security certificate. Technically, it is the VBA projects attached to documents and templates that can be signed. In your macros you may want to verify that the certificate is in place. Checking for the signature programmatically can make it easier to manage the overall security efforts of a company.
The property you can use for this purpose is VBASigned. You can use it as follows:
Documents.Open FileName:="D:\dotfiles\temp.dot"
If Not ActiveDocument.VBASigned Then
MsgBox "Warning! This document has not been digitally signed.", _
vbCritical, "Digital Signature Warning"
End If
The VBASigned property will be either True or False, depending on whether the document (in this case a template) has been signed.
Tip #1461 applies to Microsoft Word versions: 2000 2002 2003
Great Idea! Word is a tool to get what you really want—printed output. This means you need to make sure that Word works as well as possible with your printer, whether it is sitting on your desk or in a room down the hall.