aademeng

要用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

分类:

技术点:

相关文章:

  • 2021-12-06
  • 2021-06-01
  • 2022-01-01
  • 2021-12-15
  • 2021-10-09
  • 2021-09-16
  • 2021-06-29
  • 2021-10-23
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2021-09-04
  • 2022-12-23
  • 2021-12-01
  • 2021-05-11
  • 2021-12-08
相关资源
相似解决方案