How to remove data connections in Excel 2016 VBA

How to remove data connections in Excel 2016 VBA?

To remove a data connection in Excel vba Choose Data Connections from the Connections drop down list in the Data section of the ribbon or press Ctrl+L. On the Data Connections dialog box, select the connection you wish to remove. Here you can also view the properties of the selected connection and its contents. If you wish to remove the connection permanently, select the Remove option.

How to remove all data connections excel ?

There are two options for removing all the data connections in excel One is to use the Data Connections window and the other is to use the VBA code. There are also a few other methods to remove all the data connections from Excel. We will discuss them one by one.

How to remove data connections in excel without VBA?

You can also remove data connections from Excel without using VBA. Just right click on the data connection and click Remove from Workbook. This will remove the connection without deleting any linked data.

How to remove all data connections in Excel ?

If you want to remove all the data connections, you can do it with VBA. Just put this code in the VBA editor in the workbook:

How to delete data connections in excel ?

If you want to remove the data connection in excel, create a new connection to the source system, or delete the existing connection. Go to the Data tab and right click on the Data Connections and choose Delete. You can also use the menu in the ribbon: Data Connections and choose Remove to delete the connection.