美文网首页
word 批量根据表格内容调整宽度 宏

word 批量根据表格内容调整宽度 宏

作者: JUN888 | 来源:发表于2020-10-12 15:06 被阅读0次
    Sub www()
    Dim oDoc As Document
    Dim oTable As Table
    Set oDoc = Documents.Open("D:\test1012.doc") '指定文件路径
    For Each oTable In oDoc.Tables
    oTable.AutoFitBehavior (wdAutoFitWindow) '根据窗口调整内容
    Next
    MsgBox "完成!"
    End Sub
    
    
    

    相关文章

      网友评论

          本文标题:word 批量根据表格内容调整宽度 宏

          本文链接:https://www.haomeiwen.com/subject/zvaupktx.html