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!

Nate Rush
  • 360
  • 2
  • 14
  • 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. – Cindy Meister Mar 26 '20 at 20:04

2 Answers2

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.

Rick Kirkham
  • 9,038
  • 1
  • 14
  • 32
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.