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

WebCommandButton.EmailSubject Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Sets or returns a String that represents the subject for e-mail messages generated to process Web form data. Read/write.


expression. EmailSubject

_expression_A variable that represents a WebCommandButton object.


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

Sub WebFormData() 
 With ThisDocument.Pages(1).Shapes(1).WebCommandButton 
 .DataRetrievalMethod = pbSubmitDataRetrievalEmail 
 .EmailAddress = "" 
 .EmailSubject = "Web form data" 
 End With 
End Sub
© 2018 Microsoft