Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

SAPGetCellInfo with Selection Property

$
0
0

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

Capture.PNG

 

Executed the command which resulted in the following error.

Capture.PNG

 

Please throw some light how to use this API function. Your help is much appreciated. Thanks.


Viewing all articles
Browse latest Browse all 3523

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>