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

SignatureSet Object

SignatureSet Object Members