1

Is it possible to run code from the Excel Javascript API without opening Excel? I'm not looking to use this in a server context, I'd just like to be able to run a Javascript script that interacts with the document from the command line.

Thanks for any input, it's greatly appreciated!

1
  • Look at leveraging the Office Open XML file format. There is, for example, an Open XML SDK for JavaScript that can be used to manipulate Office files directly. Commented Mar 26, 2020 at 20:04

2 Answers 2

1

Sorry, but this cannot be done. The Office JavaScript Library cannot initialize without getting information from a containing Office app, in which the JavaScript engine is embedded.

Sign up to request clarification or add additional context in comments.

Comments

0

You might want to check into Working with Excel in Microsoft Graph which has a JavaScript SDK. See Microsoft Graph SDKs overview for more info.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.