ActionURL Property

Microsoft Publisher Visual Basic

expression.ActionURL

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

The default value for the ActionURL property is "http://example.microsoft.com/~user/ispscript.cgi". This property is ignored for Reset command buttons.

Example

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