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による条件分岐(==(等価)と!=(不等価)を使った比較演算子) 引き続き、ifによる条件分岐に、==(等価)と!=(不等価)の比較演算子を組み合わせた例をご紹介します。 その前に、今回使用する比較演算子についておさらいします。 ==は左辺と右辺が等しい場合trueを返す !=は... 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)】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)】スプレッドシートのセルに入力されている値を取得する(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)プログラミング