I'm trying to add a digital signature to a Word document via VBA.
So far the closest I have been able to to come is:
Target.Signatures.AddNonVisibleSignature
This displays the digital signature dialog so that the user can manually select the certificate to use and apply the digital signature.
I want to accomplish this without manual intervention. But so far I've been unable to find the right combination of things in the object model to accomplish this.
The object model for signatures seems obtuse to me, and Word's built-in help and MS online resources document various properties and methods that do not appear to actually exist in the current implementation.
So far the closest I have been able to to come is:
Target.Signatures.AddNonVisibleSignature
This displays the digital signature dialog so that the user can manually select the certificate to use and apply the digital signature.
I want to accomplish this without manual intervention. But so far I've been unable to find the right combination of things in the object model to accomplish this.
The object model for signatures seems obtuse to me, and Word's built-in help and MS online resources document various properties and methods that do not appear to actually exist in the current implementation.