logo
search
OneDrive File Issues

Fix Excel and Word File Names Changing to Numbers When Opened

Muhammad TalhaMuhammad Talha Oct 1, 2026 868 views

Question details

User needs a solution to stop saved Microsoft Excel and Word documents from automatically renaming themselves to random five-digit numbers when opened.

How to Fix Excel and Word File Names Changing to Numbers When Opened
Product
Microsoft Excel, Microsoft Word, OneDrive
Device & OS
not provided
Scenario
Opening saved documents through the Microsoft 365 Recent Documents list, OneDrive, or local folders with AutoSave enabled.
Observed behavior
The original file names are replaced with five-digit numbers, forcing the user to repeatedly rename and save the files using the 'Save As' function.
Before you start

Before proceeding, check if your OneDrive sync client is up to date and verify whether the issue persists when you open files directly from your computer's local hard drive rather than from cloud shortcuts.

Solution 1Recommended

Open Directly from the Local Folder and Use Save As

Bypassing the Microsoft 365 Recent Documents list can prevent temporary file naming glitches caused by OneDrive or AutoSave conflicts.

When files are opened from the Recent Documents list, Office might fetch a temporary cached version from OneDrive, which is often designated by a numerical string.

Opening the file directly from its source folder ensures you are accessing the actual saved file.

1
Locate the file in File Explorer

Open Windows File Explorer and navigate to the specific local or OneDrive folder where your Excel or Word document was originally saved.

2
Open the file directly

Double-click the file to open it directly from this folder instead of launching Microsoft Word or Excel first and using the 'Recent Documents' list.

3
Assign a permanent name

If the file name still displays as a number, click on 'File' in the top-left corner, select 'Save As', choose your desired folder, and enter a permanent file name before clicking 'Save'.

Open Directly from the Local Folder and Use Save As
Verification: Once saved with a permanent name directly to a local folder, subsequent opens from that location should display the correct file name.
Free Microsoft Office alternative

Prevent Cloud Sync Issues with WPS Office

If Microsoft 365 and OneDrive constantly rename your files or cause frustrating sync conflicts, consider switching to WPS Office. It provides a lightweight, highly compatible alternative with seamless local saving and stable cloud management.

  1. 1. Download and install: Download WPS Office for free from the official website and follow the lightweight installation wizard.
  2. 2. Set as default: Set WPS Office as your default program for opening Word, Excel, and PDF files to ensure a seamless workflow.
  3. 3. Open files reliably: Open your existing documents directly. WPS Office will retain your original file names without generating random numerical temporary files.
Fully compatible with Microsoft Excel (.xlsx) and Word (.docx) formats.Reliable local file saving system that permanently preserves your original file names.Lightweight installation with no aggressive background syncing conflicts.Free to use with a familiar, easy-to-navigate tabbed interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why do my Excel and Word files save as random numbers?

This typically happens when a file is opened as a temporary file from a cloud cache, or when there is a synchronization conflict between Microsoft Office and OneDrive. The system creates a numbered temporary file to prevent you from losing your unsaved work.

Does AutoSave automatically change my file name?

Under normal circumstances, AutoSave constantly saves changes to the existing file name. However, if the network drops or the sync is interrupted, Office may create a temporary numbered copy so that your ongoing edits are not lost.

How do I stop OneDrive from renaming my files to five digits?

Ensure you are saving files with a specific name using the 'Save As' feature initially. Additionally, keep your OneDrive client updated, ensure you have a stable internet connection while AutoSave is active, and avoid opening files from outdated shortcuts in the Recent Documents list.