Publisher) (WebOptionButton.ReturnDataLabel 屬性

傳回或設定 一個字串 ,該字串代表網頁用來在提交頁面時用來標記指定 Web 物件的文字。 讀取/寫入。

語法

運算式。ReturnDataLabel

運算式 代表 WebOptionButton 物件的變數。

範例

此範例會建立新的網頁文字方塊,並在提交頁面時指定文字方塊中的文字標籤。

Sub LabelWebTextBoxControl() 
 With ActiveDocument.Pages(1).Shapes _ 
 .AddWebControl(Type:=pbWebControlSingleLineTextBox, _ 
 Left:=100, Top:=100, Width:=300, Height:=15).WebTextBox 
 .DefaultText = "Please enter your name here" 
 .Limit = 70 
 .RequiredControl = msoTrue 
 .ReturnDataLabel = "Full_Name" 
 End With 
End Sub

支援和意見反應

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