Note: The other languages of the website are Google-translated. Back to English
登入  \/ 
x
or
x
立即註冊  \/ 
x

or

如何在Word中將.doc格式文件批量轉換為.docx?

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

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


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

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

Kutools for Word :擁有100多個方便的Word加載項, 60天免費試用.

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

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警告 -當您嘗試全部答复時顯示消息 如果您的郵件地址在“密件抄送”列表中; 缺少附件時提醒,還有更多提醒功能...
  • 在郵件對話中回复(全部)帶有所有附件; 回复許多電子郵件 片刻之間; 自動添加問候語 回复時將日期添加到主題中...
  • 附件工具:管理所有郵件中的所有附件, 自動分離, 全部壓縮,重命名全部,保存全部...快速報告, 計算選定的郵件...
  • 強大的垃圾郵件 習俗 刪除重複的郵件和聯繫人... 使您能夠在Outlook中做得更聰明,更快和更好。
拍攝kutools前景kutools選項卡1180x121
拍攝kutools前景kutools加標籤1180x121
 
Say something here...
symbols left.
You are guest
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.
    thehairstylish · 4 days ago
    Thanks for sharing
  • To post as a guest, your comment is unpublished.
    narendra · 8 months ago
    best graphic design company in india 
    Designing is a craft of communicating words as articulations. Visuals matter more than words in the advanced field.
    The experts in the designing business recommend that illustrations are simpler to recall than words,
    and that is the reason Website designing and Graphics play an imperative job.

  • To post as a guest, your comment is unpublished.
    ajumas · 10 months ago
    Thanks for sharing this useful information.
  • To post as a guest, your comment is unpublished.
    uaevisaonline · 11 months ago
    This is really insightful article , found it very helpful and informational

  • To post as a guest, your comment is unpublished.
    shriya gupta · 1 years ago
    Hello
    Nice post .. Keep sharing.
    Thank You
  • To post as a guest, your comment is unpublished.
    Radha · 1 years ago
    Hello sir,
    I love with this post.I really appreciate for this website.Your information is so good and valuable.Lovable idea and concept for sharing this website.
    This is an amazing website.This post is nice.
    Thanks for sharing
  • To post as a guest, your comment is unpublished.
    Lipika · 1 years ago
    Hi....Hi, This blog content very technical information, it is on of the best blog i have got. Very interesting and describe in a very easy way.
  • To post as a guest, your comment is unpublished.
    Massey Tractor · 1 years ago
    Hello,
    I am glad to find this useful information Thanks for sharing this amazing article.
  • To post as a guest, your comment is unpublished.
    George56 · 2 years ago
    Interesting stuff to read. Keep it up.
  • To post as a guest, your comment is unpublished.
    BigB7v1 · 2 years 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 · 2 years 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
      • To post as a guest, your comment is unpublished.
        Radha · 1 years ago
        Hello, thanks for sharing.