Quantcast
Channel: SCN : Popular Discussions - SAP BusinessObjects Analysis, edition for Microsoft Office
Viewing all articles
Browse latest Browse all 1635

Analysis for Excel (v1.1): using VBA to pull values directly?

$
0
0

I have a situation where I'd like to be able to pull a single value (or no more than a handful) via SAP Analysis for Excel, using only VBA- bypassing the need to use worksheet cells.

 

Here is a sanitized example: In a cell on my main Excel sheet, I might have the following formula:

 

     =SAPGetMember("DS_1", "ZEENAME=Doe, John Thomas", "Key")

 

I would like to pull that same value directly in VBA without going through a worksheet cell, something like

 

     lResult = Application.Run("SAPGetMember", "DS_1", "ZEENAME=Doe, John Thomas", "Key")

 

I have not found enough information online to understand the SAP Analysis object model- and my random attempts at syntax have not led me to a working solution.

 

Using Analysis 1.1 in Excel 2007, with a fair knowledge of Excel VBA.

 

Many thanks,

Keith


Viewing all articles
Browse latest Browse all 1635

Trending Articles