How to Fix Excel Hyperlinks Opening BMP Files in Paint
Question details
The user needs Excel hyperlinks pointing to BMP images to open in the system's default photo viewer instead of launching MS Paint.

- Product
- Microsoft Excel
- Device & OS
- Windows
- Scenario
- Clicking a hyperlink within a spreadsheet that links to a local .bmp image file.
- Observed behavior
- The .bmp file opens in MS Paint when triggered from the Excel hyperlink, despite opening correctly in the default Photos app when launched directly from File Explorer.
Verify that you have administrative privileges on your Windows account, and temporarily export your HKEY_CLASSES_ROOT registry branch as a backup before modifying any CLSID values.
Reconfigure Windows Default Apps for BMP Files
Resetting the default application specifically for the .bmp file extension can force the system to route Excel hyperlink requests correctly.
Press the Win + I keys on your keyboard to launch Windows Settings, then click on the Apps category.
Select 'Default apps' from the left-hand menu, scroll down, and click the link for 'Choose default apps by file type'.
Scroll through the alphabetical list of file extensions until you find '.bmp'.
Click on the current default application (usually Paint) next to the .bmp extension and select 'Photos' or your preferred image viewer from the popup list.
Restart Microsoft Excel, open your spreadsheet, and click the hyperlink again to verify it opens in the correct application.

Modify the Image CLSID via Registry Editor
If Excel continues to bypass Windows Default Apps, you must manually update the CLSID routing in the Windows Registry to correct the OLE behavior.
Switch to WPS Office for Seamless Hyperlink and File Management
Dealing with frustrating registry edits and legacy routing glitches in Microsoft Excel can slow down your workflow. WPS Office provides a free, highly compatible alternative that respects your modern Windows system settings out of the box. Enjoy seamless spreadsheet management without the technical headaches.
- 1. Download the Installer: Get the free WPS Office installer directly from the official WPS website.
- 2. Open Your Spreadsheets: Launch WPS Spreadsheet and open your existing Excel files; formatting and hyperlinks remain intact.
- 3. Use Hyperlinks Naturally: Click your image hyperlinks and let WPS route them perfectly to your designated default viewer.

Frequently Asked Questions
Why does Excel open hyperlinks in Paint instead of my default photo viewer?
Excel often relies on legacy OLE (Object Linking and Embedding) components and specific CLSID registry keys to launch linked files. If these legacy keys are assigned to MS Paint, Excel will bypass your modern Windows Default Apps settings and force the image to open in Paint.
Will reinstalling Microsoft Office fix the hyperlink file association issue?
Reinstalling Office usually does not resolve this issue because the problematic CLSID registry keys remain stored in Windows. Resetting the default apps by file type or applying the specific registry edit is required to fix the routing.
Does changing the 'jpegfile' registry key affect BMP files?
Yes. Windows and Office sometimes group image hyperlink routing under shared legacy classes like 'jpegfile' or 'Paint.Picture'. Updating the CLSID for these primary image classes can correct the hyperlink behavior for multiple image formats, including BMP.
How do I safely reverse the registry changes if something goes wrong?
If you exported the registry key before making changes, you can simply double-click the saved .reg file and click 'Yes' to merge it back, which restores your original settings immediately.




