Share via


Workbook.EnableConnections Method (2007 System)

Enables data connections within the workbook.

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

Syntax

'Declaration
Public Sub EnableConnections
'Usage
Dim instance As Workbook

instance.EnableConnections()
public void EnableConnections()
public:
void EnableConnections()
public function 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

Workbook Class

Workbook Members

Microsoft.Office.Tools.Excel Namespace