Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Word.Field 对象,它是一个复选框,Type属性等于 wdFieldFormCheckBox。我正在尝试将 Word.Field 对象转换为 Word.CheckBox 对象,但出现转换错误。
Type
Dim chkBox as Word.CheckBox chkBox = DirectCast( myFieldInstance, Word.Checkbox)
如何将 Word.Field 对象转换为 Word.CheckBox 对象?
这是不可能的。CheckBox 是 FormField 对象的属性,而不是字段对象。