Hi,
I have a Word template that contains a digital signature line added by Insert -> Signature line -> Microsoft Office Signature Line. The template is of course NOT signed.
The user will enter data, and finally submit the document by pressing a macro button. The button does stuff like
- do some checks on the content of the document
- save the document into the correct network folder
I want to prompt the user to digitally sign the document if that hasn't already happened. I can reference SIGNED signature-lines. How can I reference UNSIGNED signature lines?
I can create a NEW signature line and sign it with
Code:
ActiveDocument.Signatures.AddSignatureLine.Sign vardelsuggsigner:="Name of the user", vardelsuggsignerline2:="Engineer (job title)", varsigimg:="John", vardelsuggsigneremail:="John@doe.com"
but that brings up the Signature Setup dialogue. Any parameters the user enters that are not even used later:
Then the sign method kicks in:
The resulting signature looks good, ignoring what the user entered earlier:
I want to prepare a signature-line with details, so my users fill in as little as necessary. Who can help me to reference the UNSIGNED signature line? Then the macro should do something like
Code:
ActiveDocument.SignatureLines(1).Sign
but SignatureLines only contains SIGNED SigLines