This is an interesting project. The first thing to note is that add-ins can only run in PowerPoint in edit mode. So, if you were hoping to see the values in the text box change in real time in presentation mode, that is not possible. The closest you could come to that would be to have the presenter press a button in the add-in to sync the data just before going into presentation mode.
Microsoft is working on techniques, based on Fluid Framework that would make it somewhat easier to carry out your scenario, but that is a long way into the future.
In the meantime, I suggest you explore the following as a strategy (which I have not tried, but I think should work):
- In your JavaScript in the PowerPoint add-in, use Microsoft Graph to open and get data from an Excel workbook stored in OneDrive or SharePoint. It would have to be a workbook to which the signed-in PowerPoint user has Read permission.
- Then your JavaScript constructs the text you want to appear in the text box, plugging in the data from Excel where you want it.
- Then your code sets the text as the content for the text box.
- The above code could be triggered by either a button on a task pane or an Add-in Command.