A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Dear Lance,
If it is a SharePoint page and share it with an external user, you can add the external users to Microsoft Entra via the steps in Quickstart: Add a guest user and send an invitation | Microsoft Learn, share the Excel file with them with the View permission, embed the file with the Embed web part via the steps in Embed your Excel workbook on your web page or blog from SharePoint or OneDrive for Business - Microsoft Support and Add content to your page using the Embed web part - Microsoft Support, share the page with him and then deploy the Modern Script web part via the the steps in SharePoint | Online | Best Practice | install Modern Script Editor Web Part for SharePoint Online Modern Site. (microsoft.com) and finally add the JavaScript code as follows to refresh the page every 5 seconds or long time to auto-refresh the data in the embedded workbook.
<script type="text/javascript">
setTimeout(function () {
location.reload();
}, 5000);
</script>
If it is a custom website page, you can use the Anyone link of the workbook in the embedded code and share the workbook with the users with the View permission.
You can use the HTML code to see if the embed code works and apply it to your own website.
<!DOCTYPE html>
<html>
<iframe src="https://contoso.sharepoint.com/:x:/s/sitename/guid" style="border:0px #ffffff none;" name="myiFrame" scrolling="no" frameborder="1" marginheight="0px" marginwidth="0px" height="400px" width="600px" allowfullscreen></iframe>
</html>
Some iframe may not be displayed on the webpage because of the X-Frame-Options header settings. You may edit the webpage setting to work around the issue based on your environment.
Thanks for your effort and time.
Sincerely
Cliff | Microsoft Community Moderator