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

WebCommandButton.ActionURL Property (Publisher)

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

Returns or sets a String that represents the URL of the server-side script to execute in response to a Submit button click. Read/write.


expression. ActionURL

_expression_A variable that represents a WebCommandButton object.

Return Value



The default value for the ActionURL property is "". This property is ignored for Reset command buttons.


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 = "" &; _ 
 End With 
End Sub
© 2018 Microsoft