返回或设置表示 Web 检查框或选项按钮值的字符串。 读/写。
语法
表达式。值
表达式 表示 WebCheckBox 对象的变量。
示例
此示例创建新的 Web 检查框控件,为其分配名称和值,并指示其初始状态已选中。
Sub CreateWebButton()
With ActiveDocument.Pages(1).Shapes.AddWebControl _
(Type:=pbWebControlCheckBox, Left:=72, _
Top:=72, Width:=100, Height:=50)
.Name = "ControlBox"
With .WebCheckBox
.Value = "This is a check box."
.Selected = msoTrue
End With
End With
End Sub
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。