We need a normal blank excel document named "EXCEL.xls".
First we create a new EXCEL document through the desktop. It does not matter whether the format (xls or xlsx) and the document are correct. Then open the excel document we just created and select File\Save As: file name "EXCEL", file type "Excel 97-2003 Workbook (*.xls)", and save location "Desktop".
Then close the excel document, return to the desktop and try opening the "EXCEL.XLS" you just saved. If the document is normal, proceed to the next step.
Copy "XECEL.xls" to the directory "C:\Windows\ShellNew\".
After completing this step, we can try right-clicking on the desktop to create a new *.xls. If the document is normal, please ignore the following steps.
In this step we open the Registry Editor, open "Run" by Start\Run or Windows key R key, type "regedit" and press Enter to open the Registry Editor .
Find and expand HKEY_CLASSES_ROOT\.xls\Excel.Sheet.8\ShellNew in turn, right-click on the blank space on the right\New\String Value, type the name "FileName" and Press Enter, double-click the string "FileName", type the numerical data "EXCEL.xls" and press Enter. Finally, press the F5 key to refresh and close the Registry Editor and you are done.
Copy the following paragraph directly to Notepad, change the extension to .reg, save and double-click to run it, if prompted, directly Sure.
This is also the solution to the problem that there is no "New Microsoft Excel 97-2003 Worksheet" in the desktop right-click menu\New.
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.xls\Excel.Sheet.8\ShellNew] "FileName"="EXCEL.xls"
Cannot see the extension. Open any folder\Tools\Folder Options\View\Hide extensions for known file types and remove the previous hook.
Recommended related articles and tutorials: excel tutorial
The above is the detailed content of New xls file prompts that the extension is inconsistent. For more information, please follow other related articles on the PHP Chinese website!