I_INTEGRATION_ACTIVE
This page is partly available in your language; the rest is shown in the original version.
Die Excel-Formel I_INTEGRATION_ACTIVE liefert, ob Invantive Control for Excel vollständig integriert und aktiv ist.
Rückgabe: ob Invantive Control for Excel vollständig integriert und aktiv ist.
Beispiele
Der folgende Code zeigt eine Meldung an, wenn Invantive Control for Excel nicht aktiv ist, bevor versucht wird, den vollständigen Namen aus Exact Online abzurufen:
Option Explicit
Sub RunSql()
On Error GoTo Catch
Dim result As Variant
'
' Get full name of current user.
'
If Not I_INTEGRATION_ACTIVE() Then
MsgBox "Invantive Control for Excel is not available. Please use the Tools menu to activate it."
End If
result = InvantiveControlUDFs.I_SQL_SELECT_SCALAR("fullname", "Me")
MsgBox ("Result is '" & result & "'.")
Finally:
Exit Sub
Catch:
HandleError "RunSql"
End Sub
Der folgende Code zeigt eine Meldung an, wenn Invantive Control for Excel nicht aktiv ist, bevor versucht wird, alle Eigenschaften der Hauptbuchkonten aus Exact Online abzurufen:
Option Explicit
Sub RunSqlTable()
On Error GoTo Catch
Dim result() As Variant
'
' Get list of GLAccounts.
'
If Not I_INTEGRATION_ACTIVE() Then
MsgBox "Invantive Control for Excel is not available. Please use the Tools menu to activate it."
End If
result = InvantiveControlUDFs.I_SQL_SELECT_TABLE("select * from ExactOnlineREST..GLAccounts")
Finally:
Exit Sub
Catch:
HandleError "RunSqlTable"
End Sub