Share via


WorkbookBase.EnableConnections Method

Enables data connections within the workbook.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Syntax

'Declaration
Public Sub EnableConnections
public void EnableConnections()

Examples

The following code example calls the EnableConnections method to enable data connections in the workbook and suppress any security warnings for existing data connections.

This example is for a document-level customization.

Private Sub EnableWorkbookConnections()
    Me.EnableConnections()
End Sub
private void EnableWorkbookConnections()
{
    this.EnableConnections();
}

.NET Framework Security

See Also

Reference

WorkbookBase Class

Microsoft.Office.Tools.Excel Namespace