SignatureSet.AddSignatureLine method (Office)

Adds lines to a document where signatures are collected.

Syntax

expression.AddSignatureLine(varSigProv)

expression An expression that returns a SignatureSet object.

Parameters

Name Required/Optional Data type Description
varSigProv Optional Variant Represents the ID of the signature provider.

Return value

Signature

Remarks

After the line is added, the author of the document can add the necessary information so that each signature line shows the name and (optionally) the title of the person who should sign. When a user opens the document, Microsoft Office recognizes that one or more signature lines are present, but blank. Office then alerts the user that they need to sign this document and helps them find where in the document the requested signatures are located.

Example

The procedure in the following example receives the ID of a signature provider and, as long as the document is not read-only, adds a signature line.

Function InsertSignatureLines(ByVal SignProviderID As Variant) As Signature 
Dim objSignature As Signature 
 
If CanAddSignatureLine Then 
 objSignature = AddSignatureLine(SignProviderID) 
End If 
 
InsertSignatureLines = objSignature 
 
End Function

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.