How to Automatically Remove Data Connections in Excel for the Web
Question details
The user needs to automatically remove PivotTable or Power BI data connections when creating a copy of an existing workbook in Excel for the Web.

- Product
- Excel for the Web
- Device & OS
- not provided
- Scenario
- Creating a clean copy of a workbook without retaining external data connections or Power BI links.
- Observed behavior
- Excel for the web does not provide a standard built-in command to automatically remove these data connections upon copying.
Before attempting to automate connection removal, ensure you have backed up your original workbook and verified the exact types of data connections involved.
Consult Microsoft Communities for Custom Automation
Since there is no native button in the web version, you can explore custom automation using Office Scripts or Power Automate.
Excel for the web lacks an out-of-the-box feature to auto-remove connections. Custom solutions using Office Scripts or Power Automate are required depending on your workbook's API support.
Determine the connection type (PivotTable or Power BI), workbook location, and required output format.
Decide whether the PivotTables must remain usable as static data after the connection is stripped away.
Share your exact requirements in the Microsoft Excel, Power Automate, or Office Scripts tech communities to see if specialists can provide a custom script.
Once a script or flow is provided by the community, integrate it into the Automate tab in Excel for the Web to process your workbook copies.

Manually Remove Data Connections in Excel Desktop
If automation is not feasible, use the desktop version of Excel to manually break the links before uploading the copy.
Try WPS Office for Easier Desktop Data Management
If you are frustrated by the limitations of web-based spreadsheet tools, WPS Office provides a robust, lightweight, and fully-featured desktop alternative for managing complex data and files without the hassle.
- 1. Download and Install: Visit the official WPS website to download and install WPS Office for free.
- 2. Open Your Spreadsheet: Launch WPS Spreadsheet and open your existing .xlsx file directly.
- 3. Manage Data Easily: Use the Data tab in the desktop environment to easily view, edit, or remove connections without needing complex web automations.

Frequently Asked Questions
Can I manage Power BI connections directly in Excel for the Web?
No, Excel for the Web currently has limited capabilities for managing external data connections like Power BI. You typically need the desktop version to modify or remove them entirely.
Does Power Automate support removing PivotTable connections?
Power Automate can manipulate Excel files and copy data, but specifically isolating and removing PivotTable connections might require advanced Office Scripts or Graph API calls, depending on the workbook structure.
Why do my data connections persist when I copy a workbook?
By default, copying a workbook duplicates all its underlying metadata, including queries, data models, and external connections, to ensure the new copy functions exactly like the original.
Are Office Scripts available for all Excel for the Web users?
Office Scripts are generally available for users with specific Microsoft 365 commercial or educational licenses. If you do not see the Automate tab, your account may not have the required permissions.




