Hello Experts,
I tried SAPGetCellInfo with the dimension Property and the code is below
Public Sub CellInfo()
Dim Result12
Result12 = Application.Run("SAPGetCellInfo", ActiveCell, "DIMENSION")
MsgBox Join(Result12, vbCrLf)
End Sub
This works perfectly fine by displaying the datasource name and the technical name of the dimension.
When I tried to do the same with the selection property, I couldn't get the desired result.
The code is as follows
Public Sub CellInfo1()
Dim Result13 As Variant
Result13 = Application.Run("SAPGetCellInfo", ActiveCell, "SELECTION")
MsgBox Join(Result13, vbCrLf)
End Sub
I selected a data cell and ran the code however it returns me invalid procedure call or argument.
Selected a data cell
Executed the command which resulted in the following error.
Please throw some light how to use this API function. Your help is much appreciated. Thanks.