Create dynamic data tables in Google Docs using Google Apps Script
Автор: Matt Brigidi
Загружено: 2023-05-20
Просмотров: 14175
Описание:
This tutorial will teach you how to programmatically create dynamic, stylized tables in Google Docs using the Google Apps Script programming language.
You can use this script in a bound or unbounded Apps Script.
The video uses a Google Sheet to collect the data for the table. I like to use a custom function called "getSheetById", which allows us to use the "#gid=" number (aka the sheet ID) in order to access a sheet. This limits errors in the event that a sheet name changes.
If you would like a more thorough explanation of how and why to build this function, you can watch the complete video here: • Automate data collection in Google Sheets ...
After we collect the data, we create a document using the DocumentApp service. We learn how to create a paragraph heading and then create a table for the data.
Finally, we will learn how to create styling for the table so that it has a distinct header row and alternate coloring in the data rows.
This table will dynamically respond to the data, which means if rows are added or subtracted then the document will respond in kind.
Unfortunately, I ran out of time to write logic that would exclude null rows — feel free to hit me up in the comments if you need that.
If this is the first time you've seen one of my videos: welcome :) I have a playlist about how to automate Google Sheets if you'd like more videos about automation: • Automate Data Work in Google Sheets
My channel focuses creating lessons to help people learn how to work with data. The intention of these videos is to explain the fundamentals so that you can build data projects. I think this lesson is a wonderful compliment to my beginner dashboard build: • How to build a dashboard with dynamic drop...
If you're interested in learning about the most powerful function in Google Sheets then you can find it here: • How to use QUERY in Google Sheets
I plan on adding modules in the future that will explore other lessons. Please subscribe to my channel if you'd be interested in finding out when I release new material.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: