Building PowerPoint Add-In: What to do if desired function cannot be done with Office JavaScript API?

50 Views Asked by At

I am currently building my first PowerPoint add-in, following instructions from the Office Add-ins documentation

The documentation suggests building add-in's with the Office JavaScript API. However, I am wondering what should I do if the feature I want is not possible with the API?

For example: I want to create a button in my add-in that applies 'send to front' (same as what can be done with the existing PowerPoint GUI) to the selected shape, but I couldn't find the equivalent API to do so.

The question / example also extends to any other complex features I want to have with my add-in that isn't doable with the Office Javascript API.

A potential solution I found is with VBA, and the functionalities do cover "nearly every operation that you can perform with a mouse, keyboard, or a dialog box can also be automated by using VBA"

However, I couldn't find any documentation on how to run VBA within a add-in built with the Office JavaScript API.

Is it just a matter of needing to build an add-in not using the API? Or is there a workaround?

Apologies upfront if this is a stupid question and there is a simple answer.

0

There are 0 best solutions below