Detect Digital Signature through Macro

S

sherry

Hi,

I just wanna be able to detect whether a documnet has a digital sig
or not. How do I do this through Macro?

Thanx.
 
J

Jay Freedman

Dim Sig As Signature
If ActiveDocument.Signatures.Count > 0 Then
' document has at least one signature
For Each Sig In ActiveDocument.Signatures
MsgBox Sig.Signer & vbTab & Sig.SignDate
Next
End If

Look up the VBA help topics for Signatures property, SignatureSet
collection, and Signature object.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
Top