在處理文檔的時候遇到一個問題,不知道怎麼修訂,後面在文檔中終於翻到了。code
部分代碼文檔
Dim tgtDocument As Microsoft.Office.Interop.Word.Document Dim tgtWordApp As New Microsoft.Office.Interop.Word.Application //打開目標文檔 tgtDocument = tgtWordApp.Documents.Open(tgtFile, [ReadOnly]:=0) //接受修訂 tgtDocument.Revisions.AcceptAll()