How to Make Excel Hyperlinks Open PDFs with the Windows Default App
Question details
The user needs Excel hyperlinks that point to PDF files to open using the preferred application set as the Windows default, rather than defaulting to an unintended program like Adobe Acrobat.

- Product
- Microsoft Excel
- Device & OS
- Windows
- Scenario
- Clicking a hyperlink in an Excel spreadsheet that links to a local or network PDF file.
- Observed behavior
- The linked PDF file opens in an unexpected application instead of the preferred PDF reader configured in the Windows Default Apps settings.
Ensure you have administrator privileges on your Windows computer, as changing system-wide default apps or running a Microsoft Office repair requires elevated permissions.
Change Default Apps in Windows Settings
The most common and straightforward fix is to explicitly reassign the default application for the .pdf file extension in Windows system settings.
Excel relies on the Windows operating system to determine which application handles specific file types. If the Windows default is misconfigured, Excel will use whichever program currently claims the .pdf extension.
Press the Windows Key + I on your keyboard to open the Windows Settings menu, then click on the 'Apps' category.
Select 'Default apps' from the left sidebar, scroll down to the bottom of the page, and click the link that says 'Choose default apps by file type'.
Scroll through the list to locate the '.pdf' extension. Click on the current default application icon next to it and select your preferred PDF reader (such as Edge, Chrome, or a dedicated PDF viewer) from the list.

Repair the Microsoft Office Installation
If the Windows default app is correct but Excel still ignores it, the Office installation's registry associations may be corrupted and require a repair.
Use a VBA Macro Workaround (ShellExecute)
Force Excel to respect the Windows default application by using a VBA macro to execute the PDF file path at the system level.
Use WPS Office for Seamless Spreadsheet and PDF Integration
Dealing with Microsoft Office registry issues and broken hyperlinks can be frustrating. WPS Office is a lightweight, all-in-one suite that features both a powerful spreadsheet application and a built-in PDF reader. Hyperlinks to PDFs open effortlessly in the same tabbed workspace, ensuring you never have to worry about external default app conflicts again.

Frequently Asked Questions
Why does Excel ignore my Windows default PDF viewer?
Excel sometimes relies on its own internal registry checks or conflicting third-party add-ins rather than standard Windows file associations. Leftover registry keys from previous PDF software installations can cause Excel to bypass your system-level Windows settings.
Will repairing Microsoft Office delete my Excel files?
No, running a Quick Repair or Online Repair from the Control Panel only reinstalls and fixes the software's application files and registry keys. Your personal spreadsheets, data, and customizations remain completely safe.
Can I force Excel hyperlinks to open PDFs in a web browser like Chrome or Edge?
Yes. Navigate to Windows Settings > Apps > Default Apps, find the .pdf file extension, and select Google Chrome or Microsoft Edge as the default application. Once configured, Excel should honor this setting and launch the browser when you click a PDF hyperlink.
Is it safe to use the VBA ShellExecute workaround?
Yes, ShellExecute is a standard Windows API function that securely tells the operating system to open a file using its system-assigned default program. It is a common and safe workaround for bypassing software-specific hyperlink bugs.




