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

WebCommandButton.DataRetrievalMethod Property (Publisher)

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

Sets or returns a PbSubmitDataRetrievalMethodType that represents the way data from a Web form is processed. Read/write.


expression. DataRetrievalMethod

_expression_A variable that represents a WebCommandButton object.

Return Value



The DataRetrievalMethod property value can be one of the PbSubmitDataRetrievalMethodType constants declared in the Microsoft Publisher type library.


This example sets Microsoft Publisher to process data on the Web form in the current publication by sending an e-mail message 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