At the line 'var myFile = [login to view URL]("file");' myFile is always null. I'm using the default 'Excel web add-in' template in Visual Studio 2017. I'm trying to create an excel add-in that inserts a copy of an existing workbook into the current one. The first step is to get the full path and name of the current workbook. I got the code from here. I'm using the beta excel API. I assume the null value is because the workbook isn't 'loaded' but the workbook does open when I run the program.
I will send the whole project to the winning bid so they can debug.
The deliverable is a working add-in and an explanation as to why it was broken.