Extract data from spreadsheet to HTML file

51 views
Skip to first unread message

Rory Tyson

unread,
Feb 11, 2023, 7:46:12 PM2/11/23
to Google Apps Script Community
Hi
I have data in a spreadsheet and I am obviously able to bring that into a variable in apps scrips to manipulate it but I want to then write the results of that variable into a bound HTML file. Is this even possible? I have tried looking at the HTML service and HTML templates but I haven't seen a way of directly editing the contents of a bound HTML file.

2023-02-10_19-56-52.jpg

cwl...@gmail.com

unread,
Feb 12, 2023, 5:57:22 AM2/12/23
to Google Apps Script Community
Yes, very possible. You are on the right track using "html file from template". 
Go to https://script.google.com/home/start and scroll down to the Apps Script Web App starter file which shows how it is done. There are also a few Youtube videos out there, some probably by  Laurence Svekis, and one or two by  Learn Google Sheets & Excel Spreadsheets
Example

cwl...@gmail.com

unread,
Feb 12, 2023, 5:58:41 AM2/12/23
to Google Apps Script Community

Rory Tyson

unread,
Feb 12, 2023, 8:48:31 AM2/12/23
to Google Apps Script Community
Thanks very much for the pointer in the right direction! That is a big help.
Regards

Reply all
Reply to author
Forward
0 new messages