要用vba批量删除word文档中的表格,可以使用如下的代码:
Sub exceloffice() '作者QQ:1722187970,微信:xycgenius,微信公众号exceloffice Dim oDoc As Document Set oDoc = Word.ActiveDocument Dim oT As Table With oDoc For Each oT In .Tables oT.Delete Next End With End Sub
关注和分享Excel以及Office系列软件的方方面面,致力于提高中国的办公软件的使用水平
要用vba批量删除word文档中的表格,可以使用如下的代码:
Sub exceloffice() '作者QQ:1722187970,微信:xycgenius,微信公众号exceloffice Dim oDoc As Document Set oDoc = Word.ActiveDocument Dim oT As Table With oDoc For Each oT In .Tables oT.Delete Next End With End Sub
发表评论