Share via


WorkbookBase.EnableConnections Method

Definition

Enables data connections within the workbook.

public:
 void EnableConnections();
public void EnableConnections ();
member this.EnableConnections : unit -> unit
Public Sub 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 void EnableWorkbookConnections()
{
    this.EnableConnections();
}
Private Sub EnableWorkbookConnections()
    Me.EnableConnections()
End Sub

Applies to