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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top