After changing sheetUrl and slideUrl in Code.gs and executing setValuesToSlideFromSheet(), the values within the sheet range specified by startRow, startCol, numRows, and numCols will be inserted into the table on the Slide.
Tips
今回使うデータの作成にはGeminiを利用しました。
The data in this example was generated by Gemini.
INPUT get take make give 上記の英語について、一行ずつ以下を行ってください。 1. 日本語訳 2. Part of Speech: v. adv. adj. など品詞の短縮形 3. short description: 短い一文の英文で説明してください。 OUTPUT例 それぞれ以下の形で一行で書いてください。 get: 得る: Part of Speech: Short description
OUTPUT get: 得る: v.: To obtain or receive something. take: 取る: v.: To carry or move something from one place to another. make: 作る: v.: To create or produce something. give: 与える: v.: To offer or hand over something to someone.
By pasting the OUTPUT into column A and entering a function like =split(A2, ": ", false) in column B, the values will be split and placed into columns B, C, D, and E.
Reference
Google Apps Scriptでスライド内のページIDを取得したい(.getObjectId)
This is a variation of the code I previously wrote at the link above.
今回やること- What I will do this time
5つの表をスライドに配置する - Place four tables on the slide.
スライドにダイアログを表示する - Display a dialog on the slide.
ダイアログにテキストを入力する - Enter text into the dialog.
submitボタンをクリックする - Click the submit button.
入力されたテキストを分割する - Split the entered text.
5つの表にテキストを入力する - Input the text into the five tables.
今回の例では、4つの英単語 get, take, make, give の類義語と日本語訳をダイアログに入力し、それをよしなに分割して5つの表に入力します。
In this example, I will input synonyms and Japanese translations for the four English words (get, take, make, give) into a dialog, split them appropriately, and input them into five tables.
今回使うスライドの例
An example of the slide used for this demonstration.
左に4行1列の表を配置
Place a table with 4 rows and 1 column on the left.
右に4行2列の表(1行目はセルを結合)を縦に4つ配置 Vertically place four tables to the right, each with 4 rows and 2 columns
It took multiple attempts to achieve successful horizontal centering of text within cells, as neither ChatGPT-4 nor Gemini provided a working solution in one go.