File Sharing Problems

How to Keep OneDrive Links Absolute When Pasting into Excel

Ayan MasoodAyan Masood Nov 10, 2026 870 views

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.

How to Keep OneDrive Links Absolute When Pasting into Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Access Workbook Properties

Open your Excel workbook, click on the 'File' tab in the ribbon, and select 'Info' from the left menu panel.

2
Open Advanced Properties

On the right side of the Info screen, click on 'Properties' and choose 'Advanced Properties' from the drop-down menu.

3
Set the Hyperlink Base

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.

4
Save and Test

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.

Set a Hyperlink Base in Workbook Properties
Tip: Be aware that setting a hyperlink base affects the entire workbook. If you have local file links, they will also try to resolve using this new base path.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS website to download the free, lightweight office suite.
  2. 2. Install the Software: Follow the on-screen instructions to quickly install WPS Office on your computer.
  3. 3. Open Your Spreadsheets: Open your existing .xlsx files directly in WPS Spreadsheet with perfect compatibility and link management.
Fully compatible with Microsoft Excel (.xlsx) formats.Prevents unexpected relative link conversions to keep web URLs stable.Free, lightweight, and fast to load on both Windows and Mac.Familiar user interface ensuring a zero-learning-curve transition.
microsoft office alternative - wps office

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.