返回与指定形状关联的 WebCheckBox 对象。
语法
表达式。WebCheckBox
expression 一个代表 Shape 对象的变量。
返回值
WebCheckBox
示例
此示例创建一个新的 Web 检查框,并指定其默认状态处于选中状态。
Dim shpNew As Shape
Dim wcbTemp As WebCheckBox
Set shpNew = ActiveDocument.Pages(1).Shapes _
.AddWebControl(Type:=pbWebControlCheckBox, Left:=100, _
Top:=123, Width:=17, Height:=12)
Set wcbTemp = shpNew.WebCheckBox
wcbTemp.Selected = msoTrue
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。