Table of contents
TOC
Collapse the table of content
Expand the table of content

SignatureSet.AddSignatureLine Method (Office)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Adds lines to a document where signatures are collected.

Syntax

expression. AddSignatureLine( varSigProv )

expression An expression that returns a SignatureSet object.

Parameters

NameRequired/OptionalData TypeDescription
varSigProvOptionalVariantRepresents 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

Concepts

SignatureSet Object

Other resources

SignatureSet Object Members

© 2018 Microsoft