Hyperlinks in Microsoft Excel allow workbooks to link seamlessly to local PDF documentation, external spreadsheets, server shares, or intranet portals. When clicking an embedded hyperlink, users frequently encounter an alert box stating: “Cannot open the specified file.” This failure occurs when relative file paths break following folder relocation, workbook hyperlinking options alter directory baselines, or path names contain reserved characters like pound signs (#).
Fix the Pound Sign (#) Filename Encoding Bug
Microsoft Excel contains a well-documented path parsing bug: when a linked file or target folder contains a number sign or hash character (#), Excel interprets the character as an internal bookmark delimiter rather than literal file text. Consequently, the operating system halts file opening.
- Inspect the complete folder path and filename of the target file you are trying to open.
- If the directory contains a pound sign (e.g.
C:\Projects\Invoice #104.pdf), rename the file or folder to eliminate the character (e.g.C:\Projects\Invoice_104.pdf). - Right-click the hyperlink cell in Excel and select Edit Hyperlink.
- Update the destination address to reflect the newly renamed path and click OK.
Configure the Hyperlink Base Path in Workbook Properties
By default, Excel calculates relative hyperlinks using the current directory of the host workbook. When workbooks are emailed or copied to different drives, relative paths point to non-existent locations.
- Open the affected workbook in Excel and click File > Info.
- On the right side of the screen, click the Properties drop-down menu and choose Advanced Properties.
- Select the Summary tab.
- Locate the Hyperlink base text field.
- Enter the canonical fixed base path where your linked documents permanently reside (for example,
\\CorporateServer\SharedDocs\orD:\Archive\). - Click OK and save the workbook to enforce consistent absolute path resolution.
Disable Automatic Hyperlink Path Updates on Save
Excel includes an automated routine that adjusts relative hyperlink addresses whenever a workbook is saved, frequently breaking links pointing across drive partitions.
- In Excel, click File > Options > Advanced.
- Scroll down to the General section and click the Web Options button.
- In the Web Options dialogue, click the Files tab.
- Uncheck the option labeled “Update links on save”.
- Click OK, click OK again on the Options window, and re-test your hyperlinks.
Verify Windows Default Browser and Application Associations
If the hyperlink targets a specific file type (such as a .pdf or .html file) and Windows lacks an active default program association for that extension, the file execution fails silently.
- Press Windows Key + I to open Windows Settings.
- Navigate to Apps > Default apps.
- Ensure valid default applications are assigned for standard document extensions (including PDF, HTTP, and HTTPS).