如何查找Word文档中是否使用了控件
Selection.InlineShapes.AddOLEControl ClassType:="Forms.CommandButton.1"
Selection.InlineShapes.AddOLEControl ClassType:="Forms.ListBox.1"
例如WORD文档中添加了以上两个控件,通过什么方式能查找到?
[解决办法]
Dim doc As DocumentSet doc = ActiveDocumentDim shp As InlineShapeFor Each shp In doc.InlineShapes MsgBox shp.TypeNext