Office Scripts
Not Currently Available in Word 365
At the moment Office Scripts is only available in Excel 365, not in Word 365.
However it is possible to automate Word with JavaScript / TypeScript by using [[Office Add-ins]].
Office Scripts uses the "Office Scripts API" which is synchronous.
Office Add-ins uses the "Office JS API" which is asynchronous (and more advanced).
function fun_CheckAPIVersions() {
fun_CheckAPI('WordApi', 1.1);
fun_CheckAPI('WordApi', 1.2);
fun_CheckAPI('WordApi', 1.3);
fun_CheckAPI('WordApi', 1.4);
fun_CheckAPI('WordApi', 1.5);
}
function fun_CheckAPI(pAPIName, pMinVersion) {
if (Office.context.requirements.isSetSupported(pAPIName, pMinVersion)) {
console.log(pAPIName + ' ' + pMinVersion + ' is supported');
}
else {
console.log(pAPIName + ' ' + pMinVersion + ' is NOT supported');
}
}
© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopNext