GAS入門(Google Apps Script)【Google Apps Script(GAS)】スクリプトエディタの起動(GAS入門) Google Apps Scriptではスクリプトエディタを起動しないことにはスクリプトを記述してプログラムを実行する事ができません。 そこで今回は、スクリプトエディタの起動方法などについてご紹介します。 スクリプトエディタ... 2023.03.19GAS入門(Google Apps Script)Google Apps Script(GAS)スクリプトエディタ(Google Apps Script・GAS)プログラミング
Google Apps Script(GAS)【Google Apps Script(GAS)】ifによる条件分岐(==、>=、<=を使った比較演算子) Google Apps Scriptにおける、ifによる条件分岐に、==、>=、<=の比較演算子を組み合わせた例をご紹介します。 その前に、今回使用する比較演算子についておさらいします。 ==は左辺と右辺が等... 2023.03.19Google Apps Script(GAS)プログラミング条件分岐(Google Apps Script・GAS)演算子(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】ifによる条件分岐(||(論理和)を使った論理演算子) Google Apps Scriptにおける、ifによる条件分岐に、||(論理和)の論理演算子を組み合わせた例をご紹介します。 その前に、今回使用する論理演算子についておさらいします。 ||(論理和)は、OR(AまたはB... 2023.03.19Google Apps Script(GAS)プログラミング条件分岐(Google Apps Script・GAS)演算子(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】ifによる条件分岐(&&(論理積)を使った論理演算子) Google Apps Scriptにおける、ifによる条件分岐に、&&(論理積)の論理演算子を組み合わせた例をご紹介します。 その前に、今回使用する論理演算子についておさらいします。 &&... 2023.03.19Google Apps Script(GAS)プログラミング条件分岐(Google Apps Script・GAS)演算子(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】スプレッドシートのセルに入力されている値を取得する(getValue、getValues) 今回はGoogle Apps Scriptにおける、スプレッドシートの単一セルに入力されている値の取得方法(getValue)と、セル範囲に入力されている値の取得方法(getValues)についてご紹介します。 単一セルに入力され... 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 Apps Scriptにおいて、現在日時を取得するには下記スクリプトを使... 2023.03.19Google Apps Script(GAS)プログラミング日時(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】文字列の置換と削除(replace) エクセルやスプレッドシートにおいては文字列の削除や置換は頻繁に使われます。 そこで今回はGoogle Apps Scriptにおける、文字列の置換や削除方法についてご紹介します。 文字列の置換 Google Apps Scri... 2023.03.19Google Apps Script(GAS)プログラミング文字列操作(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】スプレッドシートを、IDとシート名で指定する Google Apps Scriptにおいて、スプレッドシートを、スプレッドシートに紐づけられているIDを使って取得するには下記スクリプトを使用します。 SpreadsheetApp.openById() ちなみにスプレ... 2023.03.19Google Apps Script(GAS)スプレッドシート(Google Apps Script・GAS)プログラミング
Google Apps Script(GAS)【Google Apps Script(GAS)】値が入力されているセルの最終行、最終列の取得 スプレッドシート内における、最終行、最終列の数値を取得する方法についてご紹介します。 値が入力されているセルの最終行の数値を取得する スプレッドシート内で何らか値が入力されている最終行の数値を取得する場合、下記スクリプトを使用し... 2023.03.19Google Apps Script(GAS)プログラミング列、行(Google Apps Script・GAS)
Google Apps Script(GAS)【Google Apps Script(GAS)】for文を使った繰り返し処理 Google Apps Scriptにおいて、指定した回数だけ繰り返し処理を実行したい場合、for文が頻繁に使われます。 for文は、以下のように書きます。 for (初期化式; 条件式; 増減式) { 処理内容 ... 2023.03.19Google Apps Script(GAS)プログラミング繰り返し処理(Google Apps Script・GAS)