Hi Expert,
I can't seem to get some API work and wondering if I'm doing anything wrong.
GetActiveConnection and GetColumnAxisMembers both return strings, and I could show the string result of the first API in the message box while failed on the second. Any idea? The vba codes are:
Dim api as New EPMAddInAutomation
str = api.GetActiveConnection(Worksheets("Report"))
MsgBox str
==> This will correctly return the Connection Name in the message box
str = api.GetColumnAxisMembers(Worksheets("Report"), "000")
MsgBox str
==> this will prompt an error: Compile Error, Type mismatch.
Thanks in advance,
Ben