3 Quick Ways to Batch Convert Word DOC to DOCX Files and Vice Versa

In this article, there are 3 quick ways for you to batch convert Word doc to docx files and vice versa.

Generally it’s been well-known that different Word versions save files in different types, with extensions like .doc or .docx. In team work, it’s likely that different members use different version of Word. Consequently, this leads to the difficulty of opening and editing sharing files. For example, you can’t open docx files in Word with version earlier before the 2007. Besides, you may be able to open doc files in Word with version of 2007 and higher, but some of the options can be restricted, causing inconvenience in editing.

Thus, it’s of great necessity to find ways to convert between Word doc and docx files, better if it can achieve batch processing.

Method 1: Batch Convert Word Doc to Docx Files

  1. First and foremost, organize all file to be processed in one file folder.
  2. Then open Word and press “Alt+ F11” to open the VBA editor.
  3. Now click “Normal” project and click “Insert” after it.
  4. Next choose “Module” to insert a new module in the project.Click "Normal"->Click "Insert"->Click "Module"
  5. Then double click the module to open the editing area and paste the following codes:
Sub TranslateDocIntoDocx()
  Dim objWordApplication As New Word.Application
  Dim objWordDocument As Word.Document
  Dim strFile As String
  Dim strFolder As String

  strFolder = "E:\Temp\"
  strFile = Dir(strFolder & "*.doc", vbNormal)
  
  While strFile <> ""
    With objWordApplication      
      Set objWordDocument = .Documents.Open(FileName:=strFolder &strFile, AddToRecentFiles:=False, ReadOnly:=True, Visible:=False)
          
      With objWordDocument
        .SaveAs FileName:=strFolder & Replace(strFile, "doc", "docx"), FileFormat:=16
        .Close
      End With
    End With
    strFile = Dir()
  Wend   

  Set objWordDocument = Nothing
  Set objWordApplication = Nothing
End Sub
  1. At last, click “Run” button.Paste Codes->Click "Run"

Seconds later, you will find all doc files have been converted to docx files.Convert doc Files to docx Files

Note:

In code line “strFolder = “E:\Temp\””, you should replace the “E:\Temp” with the location of your file folder.

Method 2: Batch Convert Word Docx Files to Doc Files

  1. To start off, place all docx files in one file folder.
  2. Similarly, press “Alt+ F11” to open VBA editor.
  3. Then follow the same way in method 1 to insert a new module and open it.
  4. Next paste the following codes there:
Sub TranslateDocxIntoDoc()
  Dim objWordApplication As New Word.Application
  Dim objWordDocument As Word.Document
  Dim strFile As String
  Dim strFolder As String

  strFolder = "E:\Temp\"
  strFile = Dir(strFolder & "*.docx", vbNormal)
   
  While strFile <> ""
    With objWordApplication  
      Set objWordDocument = .Documents.Open(FileName:=strFolder & strFile, AddToRecentFiles:=False, ReadOnly:=True, Visible:=False)
     
      With objWordDocument
        .SaveAs FileName:=strFolder & Replace(strFile, "docx", "doc"), FileFormat:=0
        .Close
      End With
    End With
    strFile = Dir()
  Wend

  Set objWordDocument = Nothing
  Set objWordApplication = Nothing
End Sub
  1. Lastly, hit “Run” button to start converting.Paste Codes->Click "Run"

Still you must remember to change “E:\Temp” in the code line “strFolder = “E:\Temp\”” to your actual file folder path.Convert docx Files to doc Files

Method 3: Use the “Save As” Way

  1. Firstly, arrange all doc or docx files in one folder.
  2. Secondly press “Ctrl” and click to select all files.
  3. Next right click and choose “Save As” on the menu.
  4. Now there shall be multiple “Save As” windows popping up, so choose doc or docx for file type accordingly.
  5. Finally click “Save” to close all windows.

However, due to the variety of Windows or Office version, the “Save As” option might not be available on the contextual menu. Therefore, it’s highly recommended to take the 2 macro ways to conduct the task.

Mind Your File Integrity

Though we introduced 3 ways to convert between Word doc and docx files, these files are highly susceptible to corruptions due to human errors or mishandlings. Therefore, you should back up often and also keep a Word document problem repair utility in case of occurring damages.

Author Introduction:

Vera Chen is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including Excel data error repair tool and pdf repair software products. For more information visit www.datanumen.com

6 responses to “3 Quick Ways to Batch Convert Word DOC to DOCX Files and Vice Versa”

  1. I was recommended this web site by my cousin. I’m not sure whether this post is written by him as nobody else know such detailed about my trouble. You are wonderful! Thanks!

  2. Make sure that you add the “\” backslash symbol at the end of your file path. I accidentally copied my folder path and forgot to add the backslash. This fixed my issue.

  3. Method One doesn’t work. Had 6 .doc files. Only one was converted to .docs and that same .doc file also created a .docxx file. Macro shows still running, but not doing anything.

Leave a Reply

Your email address will not be published. Required fields are marked *