I want to run some Invantive SQL statements from within VBA code on Excel on an Exact Online data source.
I can use a UDF function call like:
I_SQL_SELECT_SCALAR("select fullname from me")
in an Excel sheet.
How can I retrieve the full name from within VBA?
First, you must reference the functions from Visual Basic Editor -> Tools menu -> References:
Then use code such as the following to retrieve a scalar value:
Or to retrieve a result set (normally used in a matrix formula):
The use of I_SQL_SELECT_TABLE is only available in releases from October 2017 and newer.