We'd like to create a simpler alternative to Excel's CUBEVALUE function for retrieving data from an OLAP server. The details aren't critical, but briefly, our function will "know" the source connection and accept a very simple ticker-like parameter and a date, in place of CUBEVALUE's MDX-style parameters. This is for internal use within our firm, just FYI.
However, Excel has optimized CUBEVALUE so that calls to the OLAP server are batched.
Question: Is there a way to code the new function so that it can similarly batch calls rather than issue a separate query for each cell?