How to batch convert .doc format files to .docx in Word?
Supposing you have received some 97-2003 format Word documents, how can you batch convert all these .doc format documents to .docx format at once? This article will show you two methods to solve this problem.
Batch convert .doc format files to .docx with VBA code
Batch convert .doc format files to .docx with Kutools for Word
Batch convert .doc format files to .docx with VBA code
This section is going to show you the VBA code to convert all .doc format documents in a specified folder to .docx documents at once. Please do as follows.
1. Please collect all .doc format documents you will convert to .docx in a specified folder.
2. Press the Alt + F11 key to open the Microsoft Visual Basic for Applications window.
3. In the window, click Insert > Module. Then copy below VBA code into the Module window.
VBA code: Batch convert all .doc format documents to .docx in a certain folder
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. Press the F5 key to run the code. In the opening Browse window, select the folder contains the .doc format documents and click OK. See screenshot:
Then all .doc format documents are converted to .docx documents immediately as below screenshot shown.
Batch convert .doc format files to .docx with Kutools for Word
A handy utility will be recommended in this section. With the Doc/Docx utility of Kutools for Word, you can easily convert all .doc format documents in a folder to .docx documents. Please try as follows.
Kutools for Word : With more than 100 handy Word add-ins, free to try with no limitation in 60 days.
1. Please collect all .doc format documents in a specified folder, then click Kutools Plus > Doc/Docx. See screenshot:
2. In the Document Format Converter dialog box, you need to do as follows:
3. Then a dialog box pops up to tell you how many documents have been successfully converted, click the OK button and close the Document Format Converter window.
Now all .doc format documents are converted to .docx files. See screenshot:
If you want to have a free trial of this utility, please go to free download the software first, and then go to apply the operation according above steps.
Best Office Productivity Tools
Kutools for Outlook - Over 100 Powerful Features to Supercharge Your Outlook
📧 Email Automation: Out of Office (Available for POP and IMAP) / Schedule Send Emails / Auto CC/BCC by Rules When Sending Email / Auto Forward (Advanced Rules) / Auto Add Greeting / Automatically Split Multi-Recipient Emails into Individual Messages ...
📨 Email Management: Easily Recall Emails / Block Scam Emails by Subjects and Others / Delete Duplicate Emails / Advanced Search / Consolidate Folders ...
📁 Attachments Pro: Batch Save / Batch Detach / Batch Compress / Auto Save / Auto Detach / Auto Compress ...
🌟 Interface Magic: 😊More Pretty and Cool Emojis / Boost Your Outlook Productivity with Tabbed Views / Minimize Outlook Instead of Closing ...
👍 One-click Wonders: Reply All with Incoming Attachments / Anti-Phishing Emails / 🕘Show Sender's Time Zone ...
👩🏼🤝👩🏻 Contacts & Calendar: Batch Add Contacts From Selected Emails / Split a Contact Group to Individual Groups / Remove Birthday Reminders ...
Over 100 Features Await Your Exploration! Click Here to Discover More.











