Search code examples
javascriptms-wordoffice-jsjavascript-api-for-office

Any way to access all MS Word 2016 content controls?


I'm using the Word JS API v1.1 to create a Word 2016 add-in. The add-in needs to be able to manipulate any content controls in a document, but currently the API is limited to rich text content controls only. Is it possible to use Office.js or any other tool to access all content control subtypes (checkbox, drop down list, etc.)?

Edit:

I can manipulate content controls the way I need to using VBA macros. Is it possible to associate a Word VBA macro with my add-in?


Solution

  • You cannot mix VSTO and Office.js, they are entirely different frameworks.

    With v1.1, only Rich Text controls are supported. Support for subtypes looks to be coming in v1.3.