Fix Excel for Mac Opening Invalid Files and Warnings on Startup
Question details
Users experience Excel for Mac automatically opening multiple unwanted files and displaying invalid extension warnings immediately after launching the application or restarting the computer.

- Product
- Excel for Mac
- Device & OS
- macOS
- Scenario
- Launching Excel or restarting the Mac, triggering the automatic opening of random files.
- Observed behavior
- Excel attempts to load non-spreadsheet files, resulting in hundreds of warning prompts and unwanted files opening simultaneously.
Before modifying application preferences or system folders, ensure you have saved all active work and completely quit out of Microsoft Excel.
Clear the Excel Startup Folder Preference
The most common cause of this issue is Excel being configured to automatically open all files within a specific folder (like Downloads or Desktop) upon launch.
When a folder is selected as the startup location, Excel attempts to open every single file within it, regardless of the file type. This triggers warnings for any non-Excel extensions.
Open Excel on your Mac. Click on 'Excel' in the top Apple menu bar, then select 'Preferences' from the dropdown menu.
In the Preferences window, click on the 'General' icon.
Locate the 'At startup, open all files in' text box. If a folder path is listed there, click the 'Clear' button.
Close the Preferences window and restart Excel to verify that the unwanted files and warnings no longer appear.

Reset Excel by Removing Container Data in Safe Mode
If clearing the preferences does not resolve the problem, resetting Excel's cache and container data can clear out deeper configuration errors.
Reinstall Microsoft Office for Mac
As a last resort, reinstalling Office will replace corrupted application files that may be triggering the invalid file warnings.
Experience a Bug-Free Spreadsheet Experience with WPS Office
Tired of dealing with startup errors, container resets, and invalid file warnings? WPS Office provides a free, lightweight, and highly compatible alternative to Microsoft Office. Enjoy a clean interface, robust features, and seamless document management without the hassle of complex startup configurations.
- 1. Download WPS Office: Visit the official WPS Office website and download the installer for Mac.
- 2. Install the Software: Open the downloaded file and drag the WPS Office icon to your Applications folder.
- 3. Open Your Spreadsheets: Launch WPS Office and instantly open your existing Excel files without any format loss or annoying startup errors.

Frequently Asked Questions
Why does Excel for Mac open random files on startup?
This usually happens because Excel is set to automatically open all files within a specific folder (like your Desktop or Downloads folder) upon launch. If non-Excel files are in that folder, Excel will still try to open them, resulting in warnings.
What is the com.microsoft.Excel container file?
This folder stores user-specific settings, caches, and preferences for Excel on your Mac. Deleting it safely forces Excel to generate fresh default settings, which often resolves stubborn configuration bugs.
Will clearing the Excel startup folder delete my actual files?
No, clearing the startup folder preference simply tells Excel to stop automatically loading those files when the app opens. Your actual spreadsheets, documents, and other files remain perfectly safe on your Mac's hard drive.




