Embedding a Onedrive Excel workbook into Wordpress with view limited to only a named range

Waleed Musallam 0 Reputation points
2023-07-13T16:06:30.9433333+00:00

I am trying to Embed a 2016 Microsoft Excel workbook (that resides in my Personal Onedrive) into my web page using Wordpress (via Elementor Editor HTML widget). Doing it this way (versus HTML iframe code) turns off the microsoft links at the bottom of the frame which is what I want and that is great (which would allow people to download the file). However I cannot figure out how to just have the viewer see a named range view. Currently it opens up the first tab of the work sheet and allows the user to open up other tabs and go anywhere on the spreadsheet. I dont want that.

Question: What Javascript script code do I need to add to my current code (see below) to limit the viewing to just a selected range of cells?

Code looks like this (below) right now (like I said, it works, but views are wide open anywhere in the spreadsheet). I just copied this into the HTML widget in the Elementor editor that I use on my Wordpress. I've tried Google Bard and other sources to try to figure this out and so far, no dice. Thanks for helping if you can.

<div id="myExcelDiv" style="width: 700px; height: 700px"></div>

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,694 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,720 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,689 questions
0 comments No comments
{count} votes