bradyboyy88
Well-known Member
- Joined
- Feb 25, 2015
- Messages
- 562
Hi,
I need to add a signature block and I have the code below. However it brings up a dialog box where you have to press enter to make it go away and it will add the signature and details. I need to bypass the dialog box which it doesnt seem possible so instead I was thinking of using sendkeys. However, this message seems so unreliable that maybe there is a better solution out there?
thanks
I need to add a signature block and I have the code below. However it brings up a dialog box where you have to press enter to make it go away and it will add the signature and details. I need to bypass the dialog box which it doesnt seem possible so instead I was thinking of using sendkeys. However, this message seems so unreliable that maybe there is a better solution out there?
thanks
Code:
Sub Macro1()
Dim mysignature1 As Signature
Set mysignature1 = ActiveDocument.Signatures.AddSignatureLine("{00000000-0000-0000-0000-000000000000}")
mysignature1.Setup.SuggestedSigner = "Name"
mysignature1.Setup.SuggestedSignerLine2 = "Project Manager"
mysignature1.Setup.SuggestedSignerEmail = "email@domain.com"
End Sub
Last edited: