共用方式為


WebCommandButton.ButtonText (發布者)

回傳或設定一個字 ,代表網頁指令按鈕正面出現的文字。 讀取/寫入。

語法

表情按鈕文字

一個代表 WebCommandButton 物件的變數。

傳回值

字串

範例

此範例建立一個新的網頁指令按鈕,指派文字顯示在按鈕正面,並指定寄送表單資料的電子郵件地址。

Sub NewWebForm() 
 With ActiveDocument.Pages.Add(Count:=1, After:=1) 
 With .Shapes.AddWebControl(Type:=pbWebControlCommandButton, _ 
 Left:=72, Top:=72, Width:=72, Height:=36) 
 With .WebCommandButton 
 .ButtonType = pbCommandButtonSubmit 
 .ButtonText = "Send Form:" 
 .EmailAddress = "someone@example.com" 
 End With 
 End With 
 End With 
End Sub

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應