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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.