How to Fix Excel Hyperlinks to Shared-Drive Files Not Working in Teams
Question details
Users are unable to open hyperlinks pointing to local network or shared-drive documents when viewing an Excel workbook inside Microsoft Teams.

- Product
- Microsoft Excel, Microsoft Teams
- Device & OS
- not provided
- Scenario
- Attempting to click a hyperlink in an Excel file shared in Microsoft Teams that points to a local network or shared office drive.
- Observed behavior
- The hyperlink fails to open because Teams uses Excel for the Web and SharePoint Online, which cannot resolve local network paths.
Ensure that the Microsoft Excel desktop application is installed on your computer and that you are actively connected to the office network or VPN where the shared drive is located.
Open the Excel Workbook in the Desktop Application
By launching the workbook in the native Excel desktop app instead of the Teams web viewer, local and shared-drive hyperlinks will function correctly.
Microsoft Teams uses Excel for the Web to display worksheets. Due to browser security architectures, web applications cannot directly access files stored on local area networks (LAN) or mapped network drives. Opening the file in the desktop app bypasses this web restriction.
Navigate to the chat or channel in Microsoft Teams where the Excel file is shared.
Click on the three dots (More attachment options) located next to the Excel file name.
Choose 'Open in app' or 'Open in Desktop App' from the dropdown menu to launch the file in your local Excel software.

Manage Spreadsheets Seamlessly with WPS Office
Tired of web-viewer limitations and complex network link issues in Microsoft Office? Try WPS Office, a highly compatible, lightweight, and completely free alternative for all your spreadsheet and document needs.
- 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite.
- 2. Open your spreadsheet: Launch WPS Spreadsheets and open your .xlsx file directly from your local drive.
- 3. Access network links smoothly: Click your shared-drive hyperlinks, which will resolve perfectly in the WPS desktop environment without web restrictions.

Frequently Asked Questions
Why do shared drive links work in Excel desktop but not in Microsoft Teams?
Microsoft Teams renders files using Excel for the Web. Web browsers and web-based applications restrict direct access to local network paths (like mapped drives or local servers) for security reasons. Desktop applications do not have these web security restrictions.
How can I make hyperlinks work directly inside Microsoft Teams?
To make hyperlinks clickable directly within Teams or Excel for the Web, you need to migrate the linked files from your local shared drive into a cloud storage solution like SharePoint or OneDrive, and update the hyperlinks in your Excel file to point to the new web URLs.
Is there a way to set 'Open in Desktop App' as the default for Excel files in Teams?
Yes. In Microsoft Teams, go to Settings > Files and links, and change the 'File open preference' from 'Teams' to 'Desktop app'. This ensures all Office files will automatically launch in their native desktop applications when clicked.
Can I link to a local file using a file:// protocol in Excel for the Web?
No, Excel for the Web blocks the file:// protocol for security purposes. Only HTTP and HTTPS protocols are officially supported and clickable for hyperlinks in the web environment.




