How to Open XLSM and XLSB Files from PDF Hyperlinks
Question details
The user is trying to open macro-enabled Excel files (XLSM, XLSB) via hyperlinks embedded in a PDF, but the files are blocked due to security restrictions.

- Product
- PDF Reader / Spreadsheet
- Device & OS
- not provided
- Scenario
- Clicking a hyperlink inside a PDF document to open a linked XLSM or XLSB file.
- Observed behavior
- The linked XLSM or XLSB files fail to open or are blocked by system security policies, browser restrictions, or Office security settings.
Ensure you explicitly trust the source of both the PDF and the linked Excel files, as macro-enabled formats (XLSM and XLSB) can contain potentially harmful scripts. Consult your IT administrator if your device is managed by an organization.
Use a Trusted Document Repository
The safest way to bypass security blocks without modifying the system registry is to place the linked files in a trusted network or secure web location.
Microsoft security policies frequently block direct links to local or untrusted network locations containing macro-enabled files. Moving these files to an administrator-approved repository prevents security software from aggressively blocking the action.
Identify the current local or network location of the XLSM or XLSB files linked in your PDF document.
Move or upload these files to a secure, company-approved web location or a trusted document repository such as a managed SharePoint site or secure intranet server.
Open your PDF editor, edit the hyperlinks pointing to the old local paths, and update them to point to the new secure web addresses.
If you are on a managed corporate network, request your IT administrator to add the new repository URL to the 'Trusted Sites' list in Windows or your security software.

Manually Unblock the Target Files
If you are opening local files on a personal computer, you may need to manually unblock the specific downloaded Excel files before the PDF link can trigger them.
Open, Edit, and Link Spreadsheets Securely with WPS Office
WPS Office provides an all-in-one suite with robust PDF and Spreadsheet applications. It allows you to safely view PDFs, manage hyperlinks, and seamlessly interact with linked spreadsheet files while maintaining full compatibility with Microsoft Excel formats.
- 1. Install WPS Office: Download and install WPS Office on your Windows, Mac, or Linux device.
- 2. Open Your Document: Open your PDF document using WPS PDF. Navigate to the page containing the hyperlink.
- 3. Manage and Click Links: Click the hyperlink. If the link destination is secure and trusted, WPS Office will securely route you to the linked file.
- 4. View Spreadsheets Instantly: If the linked file is a spreadsheet, WPS Spreadsheet will automatically launch and open the XLSM or XLSB file seamlessly in a new tab.

Frequently Asked Questions
Why does my PDF block links to XLSM or XLSB files?
PDF readers and operating systems block links to macro-enabled files (XLSM, XLSB) by default because macros can execute scripts that pose a significant security risk. This is a built-in defense mechanism against malware and unauthorized system changes.
Can I edit the Windows registry to force these PDF hyperlinks to work?
While registry edits can bypass these restrictions, it is highly discouraged as it removes critical security layers, making your system vulnerable to malicious scripts. On corporate networks, these registry edits are typically overridden by Group Policies anyway.
How can I update hyperlinks in a PDF to point to a secure web location?
You can use a comprehensive PDF editor like WPS PDF. Open the document in editing mode, select the 'Edit Link' or 'Hyperlink' tool, click on the existing link area, and change the local destination path to your new, secure URL.
Do I need special software to open XLSM and XLSB files once the link works?
Yes, you need a spreadsheet application that supports macro-enabled binary and XML formats, such as Microsoft Excel or WPS Spreadsheet. Standard text editors or basic PDF viewers cannot process or display the data inside these files.




