发布者) (WebCommandButton.HiddenFields 属性

返回表示附加到“提交”命令按钮的隐藏 Web 字段的 WebHiddenFields 对象。

语法

表达式。HiddenFields

表达式 表示 WebCommandButton 对象的变量。

返回值

WebHiddenFields

示例

此示例将新的隐藏 Web 字段添加到新的 “提交 命令”按钮。

Sub CreateActionWebButton() 
 With ActiveDocument.Pages(1).Shapes 
 With .AddWebControl _ 
 (Type:=pbWebControlCommandButton, Left:=150, _ 
 Top:=150, Width:=75, Height:=36).WebCommandButton 
 .ButtonText = "Submit" 
 .ButtonType = pbCommandButtonSubmit 
 End With 
 .Item(1).WebCommandButton.HiddenFields.Add _ 
 Name:="User", Value:="PowerUser" 
 End With 
End Sub

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。