Excel office script to work with pivot table connecting to tabular olap cube?

Wang, Wenchi 20 Reputation points
2025-06-06T12:20:37.6066667+00:00

I have a vba script to update all pivot table filters at once. All pivot tables in the Excel file are connecting to azure tabular olap cube. The vba script is working fine. I am trying to use the office script to do the same tasks with no luck. Even try to to record with automation and nothing being recorded when changing filter value or creating new pivot table with the same connection. I was wondering if this is the limitation to office script as i can find anything mentioned about olap cube interaction.

Thanks in advance.

Wenchi Wang

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. Luis Angel Ñañez Llanos 431 Reputation points
    2025-06-06T13:13:36.4266667+00:00

    Hi buddy, I am sorry to give a negative answer, I would like to say that you can.

    I would like to tell you that even their Office Scripts API is not fully complete. Office Scripts isn't able to connect to all objects yet, for example, it can't connect to the slicer object of pivot tables.

    Unlike VBA, which is complete and connects to any Microsoft Excel object (and Word, PowerPoint, Outlook), Office Script is not yet fully complete and we will have to wait a while longer to work completely and move from VBA to Office Scripts.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it.

    This way, everyone who has the same question will know that they can find the answer here.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.