提示:其他語言是Google翻譯的。 你可以訪問 English 版本。
登入
x
or
x
x
註冊
x

or

如何批量轉換.doc格式文件到Word中的.docx?

假設您已收到一些97-2003格式的Word文檔,如何將所有這些.doc格式文檔一次批量轉換為.docx格式? 本文將向您展示兩種解決此問題的方法。

使用VBA代碼將.doc格式文件批量轉換為.docx

使用Kutools for Word將.doc格式文件批量轉換為.docx


將文件夾中的所有.doc格式文件批量轉換為.docx格式:

文檔格式轉換器 實用程序 Kutools for Word 幫助您同時將特定文件夾中的所有.doc格式文檔轉換為.docx格式。 查看截圖:

Kutools for Word:擁有超過100便利的Word插件,可以免費試用30時間不受限制。 下載並免費試用現在!


使用VBA代碼將.doc格式文件批量轉換為.docx

本節將向您展示VBA代碼,以便將指定文件夾中的所有.doc格式文檔一次性轉換為.docx文檔。 請做如下。

1。 請收集您將轉換為指定文件夾中的.docx的所有.doc格式文檔。

2。 按 其他 + F11 鍵打開 Microsoft Visual Basic for Applications 窗口。

3。 在窗口中,單擊 插入 > 模塊。 然後將VBA代碼複製到模塊窗口中。

VBA代碼:將所有.doc格式文檔批量轉換為某個文件夾中的.docx

Sub ConvertDocToDocx()
'Updated by ExtendOffice 20181128
    Dim xDlg As FileDialog
    Dim xFolder As Variant
    Dim xFileName As String
    Application.ScreenUpdating = False
    Set xDlg = Application.FileDialog(msoFileDialogFolderPicker)
    If xDlg.Show <> -1 Then Exit Sub
    xFolder = xDlg.SelectedItems(1) + "\"
    xFileName = Dir(xFolder & "*.doc", vbNormal)
    While xFileName <> ""
        Documents.Open FileName:=xFolder & xFileName, _
            ConfirmConversions:=False, ReadOnly:=False, AddToRecentFiles:=False, _
            PasswordDocument:="", PasswordTemplate:="", Revert:=False, _
            WritePasswordDocument:="", WritePasswordTemplate:="", Format:= _
            wdOpenFormatAuto, XMLTransform:=""
        ActiveDocument.SaveAs xFolder & Replace(xFileName, "doc", "docx"), wdFormatDocumentDefault
        ActiveDocument.Close
        xFileName = Dir()
    Wend
    Application.ScreenUpdating = True
End Sub

4。 按 F5 鍵來運行代碼。 在開幕式上 瀏覽 在窗口中,選擇包含.doc格式文件的文件夾並單擊 OK。 看截圖:

然後,所有.doc格式文檔立即轉換為.docx文檔,如下面的屏幕截圖所示。


使用Kutools for Word將.doc格式文件批量轉換為.docx

本節將推荐一個方便的實用程序。 隨著 DOC / DOCX 實用程序 Kutools for Word,您可以輕鬆地將文件夾中的所有.doc格式文檔轉換為.docx文檔。 請嘗試如下。

Kutools for Word :使用超過100方便的Word加載項, 免費試用30天無限制.

1。 請收集指定文件夾中的所有.doc格式文檔,然後單擊 Kutools Plus > DOC / DOCX。 看截圖:

2。 在裡面 文檔格式轉換器 對話框中,您需要執行以下操作:

2.1)選擇包含.doc格式文件的文件夾 源文件文件夾 部分;

2.2)選擇 將doc轉換為docx 來自 格式轉換 下拉列表;

2.3)默認情況下, 目標路徑與源相同 框已選中。 如果要將所有轉換後的.docx文檔放在同一文件夾中,只需選中此選項即可;

如果要分離.docx文檔和源.doc文檔,請取消選中 目標路徑與源相同 框,並選擇一個新文件夾以保存.docx文件 儲存 框;

2.4)點擊 開始 按鈕。 看截圖:

3。 然後會彈出一個對話框,告訴您已成功轉換了多少文檔,單擊 OK 按鈕並關閉 文檔格式轉換器 窗口。

現在所有的.doc格式文檔都轉換為.docx文件。 查看截圖:

如果您想免費試用此實用程序,請轉到 免費下載該軟件 首先,按照上述步驟進行操作。


Kutools for Outlook - 為Outlook帶來100高級功能,讓工作更輕鬆!

  • 自動CC / BCC 發送電子郵件時的規則; 自動轉發 多個電子郵件按自定義; 自動回复 沒有交換服務器,以及更多自動功能......
  • BCC警告 - 當您嘗試回复所有內容時顯示消息 如果您的郵件地址在BCC列表中; 缺少附件時提醒,以及更多提醒功能......
  • 回复(全部)使用郵件會話中的所有附件; 回复很多電子郵件 很快; 自動添加問候語 回复時; 將日期添加到主題...
  • 附件工具:管理所有郵件中的所有附件, 自動分離, 全部壓縮,重命名全部,全部保存...快速報告, 計算選定的郵件...
  • 強大的垃圾郵件 按慣例; 刪除重複郵件和聯繫人... 使您能夠在Outlook中更智能,更快速,更好地完成工作。
拍攝kutools outlook kutools選項卡1180x121
拍攝kutools outlook kutools加標籤1180x121
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    mikraj · 1 days ago
    Thanks for sharing the best information, it's most useful I am impressed I suggest other people and friends. https://www.tractorjunction.com
  • To post as a guest, your comment is unpublished.
    faizan doss · 16 days ago
    The only disadvantage of the platform is that the Pi is very slow in converting the pictures, it may take up to 10 seconds to convert one.
    How to Batch Convert Text to Hyperlinks in Spreadsheets 2013. Have you ever run into this problem before, when you open your Excel or Spreadsheets files.

    https://surveyprize.net/
  • To post as a guest, your comment is unpublished.
    faizan doss · 16 days ago
    The only disadvantage of the platform is that the Pi is very slow in converting the pictures, it may take up to 10 seconds to convert one.
    How to Batch Convert Text to Hyperlinks in Spreadsheets 2013. Have you ever run into this problem before, when you open your Excel or Spreadsheets files.

    <a href="https://surveyprize.net/">https://surveyprize.net/
    </a>
  • To post as a guest, your comment is unpublished.
    rumi88 · 16 days ago
    Nice blog, the article you have shared is good.This article is very useful. My friend suggest me to use this blog.
    https://customersurveyinfo.net/
  • To post as a guest, your comment is unpublished.
    william122 · 1 months ago
    Nice blog, the article you have shared is good.This article is very useful. My friend suggest me to use this blog.

    https://tractorsinfo.com/
  • To post as a guest, your comment is unpublished.
    avril12 · 2 months ago
    I have read your excellent post. This is a great job. I have enjoyed reading your post first time.

    http://pradhanmantri-yojana.in/
  • To post as a guest, your comment is unpublished.
    George56 · 5 months ago
    Interesting stuff to read. Keep it up.
  • To post as a guest, your comment is unpublished.
    BigB7v1 · 7 months ago
    Kudos! Thanks for sharing. This was extremely helpful. I had over 50, 000 documents that needed to be converted. Took just a touch over 39 hours to get them all done. Huge help. I used option 1
    • To post as a guest, your comment is unpublished.
      Richard876 · 1 months ago
      Open the Word document you want to turn into a PDF file. If you wish to import only ... ConvertOnlineFree - individual and batch conversations of Word docs to PDF ... PDFOnline - free Word (doc, docx and txt) to PDF converter.

      Nice blog, the article you have shared is good.This article is very useful. My friend suggest me to use this blog.

      https://customersurveyinfo.com