WebCommandButton.DataRetrievalMethod property (Publisher)
Sets or returns a PbSubmitDataRetrievalMethodType constant that represents the way data from a web form is processed. Read/write.
Syntax
expression.DataRetrievalMethod
expression A variable that represents a WebCommandButton object.
Return value
PbSubmitDataRetrievalMethodType
Remarks
The DataRetrievalMethod property value can be one of the PbSubmitDataRetrievalMethodType constants declared in the Microsoft Publisher type library.
Example
This example sets Microsoft Publisher to process data on the web form in the current publication by sending an email message 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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for