Disconnect ([OrgName], [Location], [DisplayWarning], [TableName])
OrgName - {String} Optional. Specify to disconnect a specific organisation only.
_Location - {ListObject|Range|String} | Location in Excel of report to disconnect. Can be a {Range} within a report, a {ListObject} containing the report, or a {String} matching the report's table name.
DisplayWarning - {Boolean} | Optional. Whether to show a warning prior to disconnecting.
TableName - {String} DEPRECATED (v1.11.0). Do not use.
Disconnect an organisation or specific radiusCore report from the ActiveWorkbook. If both OrgName and Location are not specified, the ‘Active Organisation’ will be disconnected.
Public Sub radius_Sample()
' Error handling.
On Error GoTo radius_ErrorHandling
' Disconnect the `Active Organisation`.
RadiusCore.Disconnect
' Disconnect organisation `ABC Ltd`.
RadiusCore.Disconnect OrgName:=“ABC Ltd”
' Disconnect table `Table1` that contains a RadiusCore report.
RadiusCore.Disconnect Location:=“Table1”
' Disconnect from organisation `ABC Ltd` without showing a warning.
RadiusCore.Disconnect OrgName:=“ABC Ltd”, DisplayWarning:=False
Exit Sub
radius_ErrorHandling:
' Implement per RadiusCore error handling example.
End Sub