Hyperlink.EmailSubject property (Publisher)

Sets or returns a String that represents the subject for email messages generated to process web form data. Read/write.

Syntax

expression.EmailSubject

expression A variable that represents a Hyperlink object.

Example

This example sets Publisher to process data on the web form in the current publication by sending an email message with a subject line to a specified email address.

Sub WebFormData() 
 With ThisDocument.Pages(1).Shapes(1).WebCommandButton 
 .DataRetrievalMethod = pbSubmitDataRetrievalEmail 
 .EmailAddress = "someone@example.com" 
 .EmailSubject = "Web form data" 
 End With 
End Sub

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.