Hello Experts,
New to analysis office and I am having difficulty with understanding SAPGetCellInfo API Function with the property Selection.
I have got the following report
With my understanding, when i run the following code, I should get details regarding the GLAccount Dimension( Row filter) , Time Dimension (Column Filter) and Measure. Is my understanding correct or its totally wrong.
Public Sub CellInfo1()
Dim Result13 As Variant
Dim txt As String
Dim i As Long
Result13 = Application.Run("SAPGetCellInfo", ActiveCell, "SELECTION")
For i = LBound(Result13) To UBound(Result13)
txt = txt & Result13(i) & vbCrLf
Next i
MsgBox txt
End Sub
When I try to run this, I am getting subscript out of range error. Kindly correct me where I am going wrong. Your help is much appreciated.
Thanks