

* Add code here to interact with the embedded Excel web app. SelectedCell: "'Monthly College Budget'!N1"Įwa.EwaControl.loadEwaAsync(fileToken, "myExcelDiv", props, onEwaLoaded) Window.addEventListener("DOMContentLoaded", loadEwaOnPageLoad, false) Window.attachEvent("onload", loadEwaOnPageLoad) run the Excel load handler on page load Use this file token to reference Monthly-college-budget1.xlsx in Excel's APIs * values from your Excel file and how to use the rest of the object model. There you can find out how to programmatically get * Excel Web App into a div with id=myExcelDiv. * This code uses the Microsoft Office Excel Javascript object model to programmatically insert the Here's the Javascript code for this sample file: I've managed to get both these sets of code for a test Excel file using the Microsoft WebApp capability. I think it's possible to publish an Excel file to a website, then grab both the embed syntax as well as the javascript code that will display that excel file with most of its functionality intact. In a project, I want the learner to use Excel for some exercises.
