Hyper Links in Personal.xlsb

rbobcat1 25 Reputation points
2026-10-20T20:38:45.0966667+00:00

Why do hyper links to my local drive or OneDrive keep breaking? I keep the file in the appdata folder under roaming / Microsoft / Excel / XLStart. But every now and then the links to local folder or files break.

Internet Hyperlinks stay good.

Microsoft 365 and Office | OneDrive | For home | Windows
0 comments No comments

Answer accepted by question author
Thomas4-N 23,140 Reputation points Microsoft External Staff Moderator
2026-10-24T07:18:21.24+00:00

Hello rbobcat1,

Could you check one affected link and clarify the following?

  1. Right-click the link and select Edit Hyperlink. What appears in the Address field before and after the link breaks? Please hide your Windows username if it appears in the path.
  2. Was the link created using Ctrl+K, the HYPERLINK() function, VBA, or an external workbook formula?
  3. When it breaks, does the address change to the XLStart folder, a local OneDrive path, or somewhere else?
  4. Does PERSONAL.XLSB contain any VBA that creates or updates hyperlinks?

This distinction matters because clickable hyperlinks and external workbook links use different path-handling rules. Microsoft documents that Excel can store workbook links as relative paths, with special handling for files in the XLStart folder: Description of link management and storage in Excel.

Was this answer helpful?

2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. AI answer

    2026-10-20T20:39:30.5366667+00:00

    Use full absolute paths for local targets and OneDrive Copy link URLs for cloud targets instead of links that Excel can resolve relative to PERSONAL.XLSB.

    Excel treats unspecified file paths as relative to the active workbook by default. Because PERSONAL.XLSB resides in XLSTART and opens automatically in the background, relative links can be resolved from that startup location rather than from the location you expected. Internet links remain stable because they already contain a complete URL. ^1^ ^2^

    For each affected link:

    1. Select the hyperlink cell in PERSONAL.XLSB.
    2. Press Ctrl+K or right-click it and select Link.
    3. Select Existing File or Web Page.
    4. In Address, enter or browse to the complete path, for example:
      • C:\Users\<username>\Documents\Reports\Report.xlsx
      • C:\Projects\Current
    5. Select OK, save PERSONAL.XLSB, close Excel, and reopen it to test the saved link.

    Excel also supports an explicit path through the HYPERLINK function:

    =HYPERLINK("C:\Users\<username>\Documents\Reports\Report.xlsx","Open report")
    

    The target must continue to exist at exactly that path. Renaming or moving the file, changing the Windows user profile, or using the workbook on another computer will invalidate an absolute local path. Excel documents both full-path and relative-path hyperlink forms. ^1^

    A path such as C:\Users\<username>\OneDrive\... points to the local synchronized copy and depends on the current OneDrive sync root. Replace it with the cloud URL:

    1. In File Explorer, right-click the OneDrive file or folder.
    2. Select Share a OneDrive link. Alternatively, open OneDrive on the web, select the item, and choose Share > Copy Link.
    3. In Excel, select the hyperlink cell and press Ctrl+K.
    4. Paste the copied URL into Address, select OK, and save PERSONAL.XLSB.

    Review the link’s permission setting when necessary; copied links can grant edit access depending on the selected sharing configuration. [^3^](https://support.microsoft.com/onedrive/share-files-and-folders-in-microsoft-onedrive "Share with "Copy link"")

    External formulas referencing another workbook follow additional relative-path storage rules. Excel generally stores workbook links relatively whenever possible, and those links remain valid only while the source and destination retain the same relative locations. XLStart also receives special handling: when a source workbook is in the user-profile XLStart folder, Excel may store an XLStart property and only the filename. ^4^

    For that case, inspect Data > Workbook Links and update the source to the intended file. Do not choose Break Links unless conversion of the formulas to their current values is acceptable.

    Avoid deleting Office registry keys as a first-line repair. The reported registry workaround concerns hyperlinks that never open in either Excel or Word, which does not match links that intermittently change or break.


    References

    1. [Windows](https://support.microsoft.com/excel/work-with-links-in-excel)
    2. Create and save all your macros in a single workbook
    3. [Share with "Copy link"](https://support.microsoft.com/onedrive/share-files-and-folders-in-microsoft-onedrive)
    4. Description of workbook link management and storage in Excel
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.