How to Prevent an Excel Office Add-in from Disappearing Without VPN
Question details
The user needs to prevent an internally deployed Excel OfficeJS add-in from disappearing from the Ribbon when the user loses connection to a required resource, such as dropping a VPN connection.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- A user is working in Excel with an internally deployed OfficeJS add-in and suddenly disconnects from the company VPN or loses network access to the add-in's host.
- Observed behavior
- The add-in disappears entirely from the Excel Ribbon and fails to return even after the network connection is restored, requiring a full restart of Excel to reappear.
Ensure that you have administrative access to modify the add-in's XML manifest file and the server environment where the add-in resources are hosted.
Host Bootstrap Resources Externally and Handle VPN Logic Internally
Since Excel removes add-ins when the SourceLocation is unreachable, the recommended approach is to ensure the initial load succeeds regardless of the user's VPN state.
An Office add-in manifest generally cannot specify multiple fallback SourceLocation URLs. If the initial bootstrap resource is blocked behind a VPN and the VPN disconnects, Excel assumes the add-in is broken and disables it. To fix this, you must separate the add-in's initial loading phase from the secure data-fetching phase.
Update your add-in's XML manifest so the SourceLocation points to a highly available, publicly reachable server rather than an internal VPN-restricted address.
Modify your add-in's JavaScript to detect API call failures to internal resources. When the internal resources are unreachable, display a custom UI message inside the task pane asking the user to connect to the VPN.
Configure a Service Worker to cache the static HTML, CSS, and basic JS resources. While this will not replace inaccessible server resources, it ensures the add-in shell loads successfully even during brief network interruptions.

Establish a User Reconnection Protocol
If architectural changes to the add-in host are not possible, users must be instructed on the proper sequence to restore the add-in.
Try WPS Office for a Stable and Seamless Spreadsheet Experience
Dealing with complex add-in configurations, manifest errors, and application crashes can disrupt your workflow. If you are looking for a reliable, lightweight alternative to Microsoft Excel, WPS Office provides excellent stability and full format compatibility without the heavy system requirements.
- 1. Download and Install WPS Office: Visit the official WPS website to download the free installation package for your operating system.
- 2. Open Your Spreadsheets: Launch WPS Spreadsheets and open your existing .xlsx files directly without any formatting loss.
- 3. Enjoy a Seamless Experience: Continue your daily data analysis and calculations in a fast, stable, and familiar environment.

Frequently Asked Questions
Why does my Excel add-in disappear when I disconnect from the VPN?
When Excel attempts to communicate with the add-in and fails because the host server is behind a disconnected VPN, Excel assumes the add-in is unavailable or broken and automatically removes it from the Ribbon to prevent errors.
Can I specify a fallback URL in the Office add-in manifest?
No, an Office add-in manifest generally does not support multiple fallback SourceLocation URLs. The application relies on the single endpoint provided in the manifest.
Will adding a Service Worker completely fix the disappearing add-in issue?
A Service Worker can cache previously downloaded resources, which helps with brief offline periods, but it cannot reliably replace inaccessible core resources or prevent Excel from handling a failed load at the host level if the initial bootstrap fails.
How do I get the add-in back after it disappears?
You must restore access to the required network resource (e.g., reconnect to your VPN) and completely restart Microsoft Excel. Excel will reload the manifest and restore the add-in upon startup.




