How to Keep OneDrive Links Absolute When Pasting into Excel
Question details
The user needs to prevent Excel from automatically converting pasted OneDrive sharing links into relative links so they function properly across different devices and user profiles.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Sharing an Excel workbook containing OneDrive links with other users or opening it on different devices like Windows and Mac.
- Observed behavior
- OneDrive hyperlinks break because Excel converts the absolute web addresses into relative paths upon saving the document.
Ensure you have the exact absolute OneDrive sharing link copied, and consider creating a backup copy of your workbook before modifying global hyperlink property settings.
Set a Hyperlink Base in Workbook Properties
Defining a hyperlink base ensures that all relative links resolve from a fixed, correct location across devices.
Excel has a built-in behavior that converts absolute paths to relative paths when saving. By specifying a Hyperlink Base in the document's advanced properties, you force Excel to use a specific root address to resolve any relative links.
This method is highly effective when your OneDrive links share a common base path and only the specific file name changes at the end of the URL.
Open your Excel workbook, click on the 'File' tab in the ribbon, and select 'Info' from the left menu panel.
On the right side of the Info screen, click on 'Properties' and choose 'Advanced Properties' from the drop-down menu.
Navigate to the 'Summary' tab in the dialog box. In the 'Hyperlink base' text field, type the root URL or base path of your OneDrive location.
Click 'OK' to apply the changes, then save the workbook. Test opening the file on another device or operating system (such as Mac) to ensure the links resolve correctly.

Use the HYPERLINK Function to Force Absolute Paths
Using an Excel formula instead of a direct copy-paste prevents Excel's background processes from automatically altering the URL format.
A Simpler Way to Manage Spreadsheets
If Excel's automatic link conversions and OneDrive syncing quirks are frustrating your workflow, WPS Office offers a highly compatible and streamlined alternative. Enjoy a familiar interface and reliable spreadsheet management where your web URLs and hyperlinks stay exactly as you pasted them.
- 1. Download WPS Office: Visit the official WPS website to download the free, lightweight office suite.
- 2. Install the Software: Follow the on-screen instructions to quickly install WPS Office on your computer.
- 3. Open Your Spreadsheets: Open your existing .xlsx files directly in WPS Spreadsheet with perfect compatibility and link management.

Frequently Asked Questions
Why does Excel change my absolute links to relative links?
Excel has a built-in feature that automatically converts absolute links (like web URLs or full file paths) to relative links upon saving. This is designed to make files easier to move between local folders without breaking links, but it often disrupts cloud-based links like those generated by OneDrive.
How can I stop Excel from updating links on save?
You can modify how Excel handles links by disabling the web option settings. Go to File > Options > Advanced, scroll down to 'Web Options', click the 'Files' tab, and uncheck 'Update links on save'. This can prevent certain unwanted link modifications.
Will setting a Hyperlink Base affect my existing local links?
Yes, setting a hyperlink base applies to the entire workbook globally. Any relative links pointing to local files on your computer will now attempt to resolve based on the new hyperlink base you provided, which might cause those specific local links to break.
Does the HYPERLINK formula fix link breaking across devices?
Yes. Using the HYPERLINK function forces Excel to evaluate the exact text string you provide as the URL. This prevents Excel's background processes from converting the absolute URL into a relative file path, keeping it functional whether opened on Windows, Mac, or Excel Online.




