invantive-dokumentationen del af invantive cloud
Invantive Support ForumsLog ind / Tilmeld dig

I_INTEGRATION_ACTIVE

This page is partly available in your language; the rest is shown in the original version.

Excel-formlen I_INTEGRATION_ACTIVE henter, om Invantive Control for Excel er fuldt integreret og aktiv.

Returnerer: om Invantive Control for Excel er fuldt integreret og aktiv.

Eksempler

Følgende kode viser en besked, når Invantive Control for Excel ikke er aktiv, før der forsøges at hente det fulde navn fra Exact Online:

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

Følgende kode viser en besked, når Invantive Control for Excel ikke er aktiv, før der forsøges at hente alle egenskaber for finanskonti fra Exact Online:

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

Udgivelsesnoter