返回或设置一个 String 类型的值,该值代表 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 支持和反馈,获取有关如何接收支持和提供反馈的指南。