WebCommandButton.ButtonText プロパティ (Publisher)

Web コマンド ボタンの顔に表示されるテキストを表す文字列型 ( String) の値を取得または設定します。 値の取得と設定が可能です。

構文

ButtonText

WebCommandButton オブジェクトを表す変数。

戻り値

String

次の使用例は、新しい Web コマンド ボタンを作成し、顔に表示するテキストを割り当て、フォーム データを送信する電子メール アドレスを指定します。

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 のサポートおよびフィードバックを参照してください。