A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hello,rami elmas
Welcome to the Microsoft community!
Sorry for the inconvenience. I understand the anxiety you are experiencing when trying to recover your lost files.
According to your addition. Since the Microsoft Community only provides technical support for the software, and no community member has access to the server's backend data to help you recover your data, I will do my best to answer your questions about the strategic and technical aspects of the software.
The first thing you can try to try to fix the file.
- win + R to open the command run window, enter regedit enter to open the registry
2.open the following path:
\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Excel\Security
3.in the red box part of the right -> New -> DWORD (32-bit) value (D) -> enter ExtensionHardening
- Right-click on ExtensionHardening and modify the value to change it to 0
- The following list contains the data settings that apply to the value of the ExtensionHardening setting:
0: Does not check file extensions and file types and bypasses the function's warning message.
1: Checks the file extension and file type. If they do not match a warning message is displayed.
2: Checks the file extension and file type. If they do not match do not open the file.
You can also refer to this site to try to fix the file.
A file is in a different format than its extension indicates in Excel - Microsoft Support
If your files are backed up in OneDrive, you can refer to the following method.
Search for your files on OneDrive.com
If you need to search through all files and folders, but you've turned on Files On-Demand or you're syncing only specific folders, you can do your search online.
- https://www.onedrive.com Sign in to the OneDrive website.
- Use the Search everything function to search for your files. You can search for the file by name or scroll through the list of files that appear.
3.Microsoft 365 subscribers can restore all OneDrive apps to a point in the past. You can use the Restore Files feature to undo all actions taken on both files and folders in the last 30 days. Learn more about restoring your OneDrive.
Recover your Microsoft 365 files - Microsoft Support
Feel free to post back if you need further assistance.
Thank you for your understanding and patience and I look forward to hearing from you.
Ryan - MSFT | Microsoft Community Support Specialist