• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar

Mechanicaleng blog

siemens nx tutorial & injection molding technology

  • Plastic molding
  • Siemens nx
    • nx modeling
    • nx drafting
    • nx sketching
    • nx assembly
  • Mechanical basic
    • mechanical standard
    • Mechanism video
  • microsoft office
    • microsoft word
    • powerpoint
    • excel tips
  • About me
  • CONTACT ME
Home » microsoft office » microsoft word » How to convert doc to docx

How to convert doc to docx

May 3, 2021 by mechanicaleng blog 1 Comment

In this tutorial, I will guide to you 2 ways to convert doc to docx by VBA code or manually? Just with 2 simple ways below is enough so that you are now no longer worry about your systems can not display Word .docx documents.

Known or not, MS Word application version 2007 and upper versions have changed the file extension from .doc to .docx. And for some old computer with lower operating systems, this cause a problem because Office 2003 can not read .docx file extension.
However, there’s always a way for those who still experience Office 2003 or lower versions of Word before 2007. This tip I’m gonna share with you today is how to convert .doc file to .docx, to helps presenting document better, saving time and improve file processing. One good thing about it is that you can do it directly in Word without any installation.

Post contents

  • I. Convert doc to docx Using VBA code.
  • II. Convert manually .doc to .docx or vice versa.
  • CONCLUSION

I. Convert doc to docx Using VBA code.

Step 1: First you should move all your document with file extension .doc into one folder.
The name of the file should not include accents or special characters.

convert doc to docx Using VBA code 1

Step 2: Open a new Word file that is not in the same folder with the files to convert.
Press Alt + F11 or Fn + Alt + F11 to open VBA code.

convert doc to docx Using VBA code 2

Step 3: Appeared the VBA Microsoft Visual Basic for Application. Click on Insert and choose Module.

convert doc to docx Using VBA code 3

Then copy this code below.
Sub chuyenfiledoc()
‘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
Paste it in the Module window.

convert doc to docx Using VBA code 4

Click RunSub/User From or press F5 to proceed.

convert doc to docx Using VBA code 5

Step 4: A new window will appear. At this step choose the file to convert.

convert doc to docx Using VBA code 6

The converting will start soon. After a while you can comeback to the folder at the beginning to check on the result.

convert doc to docx Using VBA code 7

II. Convert manually .doc to .docx or vice versa.

This method is only available for version 2007 and upper.
Open the file to convert. The file extension I’m showing below is .docx. Now I’m gonna proceed to convert it to .doc.

Convert manually doc to docx or vice versa 1

Step 1: Go to File and choose Save As. Select on Browse to choose where to save the file when finish converting.

Convert manually doc to docx or vice versa 2

Step 2: Choose the folder to save. You can save it at anywhere easy to find.
Then at the Save as type section choose the exact type you want from the options given. Then click Save.

Convert manually doc to docx or vice versa 3

The result after converting, the file now has the file extension as .doc.

Convert manually doc to docx or vice versa 4

CONCLUSION

Just with 2 simple ways above is enough so that you are now no longer worry about your systems can not display Word .docx documents. With these method you don’t have to install a third party application, or using online website, or copy all the content to a new .docx blank file, which is a waste of time. Instead with VBA code, everything is just in a blink of an eye. Also, if you find it too hard to use VBA code, or you don’t remember the code, it’s OK to use the mannual way, but you should just use it in a small number of documents.
The tutorial is also ended here. Hope you will find it useful and don’t forget to stay tune for other posts as well. Good luck!

-hhchi

 

Related posts:

Convert word to PDF by microsoft wordconvert word to PDF file online for free Convert a Word file to image by screenshot in Word3 ways to convert a Word file to image convert word to powerpoint 5How to convert word to powerpoint get picture in word face as picture optionHow to get pictures from word document?

Filed Under: microsoft word Tagged With: word tips

Reader Interactions

Comments

  1. Simon says

    June 18, 2022 at 12:31 am

    Hi. You can use a free online tool to convert DOC to DOCX https://freetools.site/document-converters/doc-to-docx

    Reply

Leave a Reply Cancel reply

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

Primary Sidebar

Recent Posts

  • what is spur gear | introduction
  • Mechanical engineering skills from training process
  • What is Inox | Stainless Steel?
  • How to create thread in nx
  • nx assembly| create a new part from the same part
  • how to calculate sum of squares in Excel
  • How to active GC toolkits in Siemens NX
  • How to create a sphere in nx
  • How to create a cone in nx
  • How to create a cylinder in nx

Copyright © 2023 · Magazine Pro on Genesis Framework · WordPress · Log in