logo
search
Data Import & Export

How to Automatically Remove Data Connections in Excel for the Web

Kushani NimanthikaKushani Nimanthika Oct 1, 2026 869 views

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.

How to Automatically Remove Data Connections 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 you start

Before attempting to automate connection removal, ensure you have backed up your original workbook and verified the exact types of data connections involved.

Solution 1Recommended

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.

1
Identify connection specifics

Determine the connection type (PivotTable or Power BI), workbook location, and required output format.

2
Determine usability requirements

Decide whether the PivotTables must remain usable as static data after the connection is stripped away.

3
Post in community forums

Share your exact requirements in the Microsoft Excel, Power Automate, or Office Scripts tech communities to see if specialists can provide a custom script.

4
Implement the automation

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.

Consult Microsoft Communities for Custom Automation
API Limitations: The success of this automation heavily depends on the current capabilities of Microsoft Graph APIs and Office Scripts.
Free Microsoft Office alternative

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. 1. Download and Install: Visit the official WPS website to download and install WPS Office for free.
  2. 2. Open Your Spreadsheet: Launch WPS Spreadsheet and open your existing .xlsx file directly.
  3. 3. Manage Data Easily: Use the Data tab in the desktop environment to easily view, edit, or remove connections without needing complex web automations.
High compatibility with Microsoft Excel formats (.xlsx, .xls, .csv).Robust desktop application that manages data links and PivotTables efficiently.Lightweight installation with a familiar, easy-to-use interface.Free to use with comprehensive offline capabilities.
microsoft office alternative - wps office

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.