How to Convert Old Office Files to New Formats Without Duplicate Copies
Question details
The user wants to convert thousands of legacy Office documents into modern formats in network folders or OneDrive without keeping the original files.

- Product
- Microsoft Office
- Device & OS
- Windows Server 2016
- Scenario
- Bulk upgrading old file formats (e.g., .doc to .docx) stored on a network drive or SharePoint.
- Observed behavior
- Standard conversion or 'Save As' actions create a second file in the modern format, leaving behind thousands of duplicate legacy files that require manual cleanup.
Before attempting any batch conversion or automated deletion scripts, test the process on a small, isolated sample folder to ensure it works correctly without unintended data loss.
Use a VBA Script for Batch Conversion and Cleanup
Using a custom VBA macro allows you to automate the 'Save As' process for thousands of files and immediately delete the original legacy file once the conversion is complete.
Microsoft Office handles format conversion by executing a 'Save As' command, which inherently leaves the original file intact as a safety measure. To override this in bulk, a script is required to perform the conversion and issue a deletion command for the old file.
Launch Microsoft Word and press Alt + F11 on your keyboard to open the Visual Basic for Applications (VBA) editor.
In the top menu, click 'Insert' and select 'Module'. Paste a batch conversion script that utilizes the SaveAs2 method for the new format and the 'Kill' statement to delete the original .doc file.
Press F5 or click the 'Run' button in the toolbar. When prompted by your script, select the target network folder containing the files you wish to convert.

Adjust OneDrive Sync Settings for SharePoint Libraries
If your files are stored in SharePoint or OneDrive, temporarily changing how Office syncs files can help facilitate direct replacements when converting from a synchronized local folder.
Manage All File Formats Seamlessly with WPS Office
Tired of dealing with complex VBA scripts and duplicate files just to maintain format compatibility? WPS Office provides a lightweight, highly compatible alternative that opens, edits, and saves both legacy and modern Office formats effortlessly.

Frequently Asked Questions
Why does converting old Office files always create a duplicate?
By default, Office applications use a 'Save As' operation when upgrading a file from a legacy format (like .doc) to a modern format (.docx). This is an intentional safety feature designed to preserve the original file in case the new format causes data shifts or compatibility issues with older systems.
Can I batch convert DOC to DOCX natively without scripts?
Microsoft Office does not include a native user-interface tool for batch converting files and automatically deleting the originals. You must rely on custom VBA macros, PowerShell scripts, or third-party batch processing software to achieve this.
How do I safely delete the old files if I convert them manually?
If you convert the files and end up with duplicates, open Windows File Explorer, navigate to the affected network folder, and sort the view by 'Type'. You can then select all files labeled as 'Microsoft Word 97-2003 Document' (.doc) and delete them in bulk, leaving only the newly created .docx files.
Does OneDrive configuration affect how files are saved?
Yes. OneDrive has a setting that allows Office applications to handle the synchronization of files you open. Disabling this setting forces OneDrive to handle the sync purely at the file-system level, which can change how overwrite and save operations behave when modifying legacy formats.




