WebCommandButton object (Publisher)
Represents a web command button control. The WebCommandButton object is a member of the Shape object.
Remarks
Use the Shapes.AddWebControl method to create a new web command button.
Use the Shape.WebCommandButton property to access a web command button control shape.
Example
This example creates a web form Submit command button and sets the script path and file name to run when a user chooses 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 = "https://www.tailspintoys.com/" _
& "scripts/ispscript.cgi"
End With
End Sub
Properties
- ActionURL
- Application
- ButtonText
- ButtonType
- DataFileFormat
- DataFileName
- DataRetrievalMethod
- EmailAddress
- EmailSubject
- HiddenFields
- Parent
- PostFormData
See also
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