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

WebCommandButton Object (Publisher)

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

Represents a Web command button control. The WebCommandButton object is a member of the Shape object.

Example

Use the AddWebControl method to create new Web command button. Use the WebCommandButton property to access a Web command button control shape. This example creates a Web form Submit command button and sets the script path and file name to run when a user clicks the button.

Sub CreateActionWebButton() 
 With ActiveDocument.Pages(1).Shapes.AddWebControl _ 
 (Type:=pbWebControlCommandButton, Left:=150, _ 
 Top:=150, Width:=75, Height:=36).WebCommandButton 
 .ButtonText = "Submit" 
 .ButtonType = pbCommandButtonSubmit 
 .ActionURL = "http://www.tailspintoys.com/" _ 
 & "scripts/ispscript.cgi" 
 End With 
End Sub

Properties

Name
ActionURL
Application
ButtonText
ButtonType
DataFileFormat
DataFileName
DataRetrievalMethod
EmailAddress
EmailSubject
HiddenFields
Parent
PostFormData
© 2018 Microsoft