Publisher) (WebCommandButton 物件
表示 Web 命令按鈕控制項。 WebCommandButton物件是Shape物件的成員。
註解
使用 Shapes.AddWebControl 方法來建立新的 Web 命令按鈕。
使用 Shape.WebCommandButton 屬性可存取 Web 命令按鈕控制項圖形。
範例
本範例會建立 Web 表單 Submit 命令按鈕,並設定當使用者選擇按鈕時要執行的腳本路徑和檔案名。
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
屬性
- ActionURL
- 應用程式
- ButtonText
- ButtonType
- DataFileFormat
- DataFileName
- DataRetrievalMethod
- EmailAddress
- EmailSubject
- HiddenFields
- Parent
- PostFormData
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應