Google Apps Script(GAS)【Google Apps Script(GAS)】for文を使った繰り返し処理(最終行取得との組み合わせ) Google Apps Scriptにおける、for文による繰り返し処理と最終行取得を組み合わせた例についてご紹介します。 for文を使った繰り返し処理 下記の例ですが、まず変数last_rowに、アクティブシートの文字列が入力... 2023.03.19Google Apps Script(GAS)プログラミング列、行(Google Apps Script・GAS)繰り返し処理(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】for文を使った繰り返し処理(条件分岐、最終行取得との組み合わせ) Google Apps Scriptにおける、for文による繰り返し処理と、条件分岐や最終行取得を組み合わせた例についてご紹介します。 for文を使った繰り返し処理 下記のサンプル1ですが、まず変数last_rowに、アクティブ... 2023.03.19Google Apps Script(GAS)プログラミング列、行(Google Apps Script・GAS)条件分岐(Google Apps Script・GAS)繰り返し処理(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】文字列の結合 今回はGoogle Apps Scriptにおける文字列の結合や、注意点についてご紹介します。 文字列の結合方法 Google Apps Scriptにおいて文字列同士を結合する場合、文字列と文字列を「+」で結ぶ事により、結合で... 2023.03.19Google Apps Script(GAS)プログラミング文字列操作(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】配列と処理速度 Google Apps Scriptでスプレッドシートの処理を自動化する上で、配列を扱えるようになるのは非常に重要です。 なぜかというと、配列を使って処理を行わないと、処理の量や内容によっては非常に、とても、すごく重くなるから... 2023.03.19Google Apps Script(GAS)プログラミング処理速度(Google Apps Script・GAS)配列(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】フォルダの作成や削除 Google Apps Scriptではスプレッドシートの操作の自動化だけでなく、Googleドライブ上のフォルダ操作を自動化する事も可能です。 今回はGoogle Apps Scriptを使ってGoogleドライブ上にフォル... 2023.03.19Google Apps Script(GAS)Googleドライブ(Google Apps Script・GAS)プログラミング
Google Apps Script(GAS)【Google Apps Script(GAS)】メッセージボックスの表示 今回は、Google Apps Scriptにおけるメッセージボックスの表示方法についてご紹介します。 メッセージボックスの表示 Google Apps Scriptでは、下記スクリプトでメッセージボックスを呼び出す事ができます... 2023.03.19Google Apps Script(GAS)プログラミングメッセージボックス(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script】ログを出力する 今回は、Google Apps Scriptで、変数に代入した値などを出力して、スクリプトの動作が正しいかを確認するための便利なスクリプトをご紹介します。 ログを出力する 変数に代入した値など、指定した値をログ出力したい場合、下... 2023.03.19Google Apps Script(GAS)プログラミングログ出力(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】取得した日時に曜日を追加する 以前、Google Apps Scriptで日時を取得する方法についてご紹介しましたが、今回は曜日も取得して反映する方法をご紹介します。 取得した日時に曜日を追加する 記事下部のサンプル1を元にご説明しますと、 まず、 ... 2023.03.19Google Apps Script(GAS)プログラミング日時(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】Webアプリケーション(Webページ)の作成(HtmlService) 今回はGoogle Apps ScriptのHtmlServiceを使ったWebアプリケーション(Webページ)の作成方法についてご紹介します。 HTMLファイルの作成 今回はスプレッドシートからスクリプトエディタを起動する形で... 2023.03.19Google Apps Script(GAS)HtmlService(Google Apps Script・GAS)プログラミング
Google Apps Script(GAS)【Google Apps Script(GAS)】1つのプロジェクトで複数のWebアプリケーション(Webページ)に遷移する(HtmlService) Google Apps ScriptのHtmlServiceを使ったWebアプリケーション(Webページ)の作成ですが、基本的には1プロジェクトに1HTMLページしか呼び出せないという問題もあります。 そこで今回は、URLのパラメ... 2023.03.19Google Apps Script(GAS)HtmlService(Google Apps Script・GAS)プログラミング