Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.07 KB

Publisher.WebCommandButton.EmailAddress.md

File metadata and controls

45 lines (30 loc) · 1.07 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
WebCommandButton.EmailAddress property (Publisher)
vbapb10.chm3932167
vbapb10.chm3932167
Publisher.WebCommandButton.EmailAddress
8961e459-1ce1-558a-2450-c3b8da2d5559
06/18/2019
medium

WebCommandButton.EmailAddress property (Publisher)

Sets or returns a String representing the email address to use when processing web form data. Read/write.

Syntax

expression.EmailAddress

expression A variable that represents a WebCommandButton object.

Return value

String

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

[!includeSupport and feedback]