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 文档中的命令按钮:
Dim o As Object For Each o In ActiveDocument.InlineShapes If o.OLEFormat.Object.Caption = "Test" Then o.Delete End If Next
这工作了几天,但现在我收到“对象变量或未设置块变量”错误。
毫无疑问,这是显而易见的。有任何想法吗?