I share this blog with my thoughts and creations from my daily programming, knowledge, and technology updates.
function myFunction(){ var email = Session.getActiveUser().getEmail(); Logger.log(email); }
この処理は以下を実行する このスクリプトを実行しているユーザのGmailアドレスを取得して ログに出す
A列の空白セルに直前の値を入れたくて書いたコードです スプレッドシートに以下のようなBeforeの表があるとき (A列に空白セルがある) Before 1 A B 2 エリア 都市 3 東京 新宿 4 渋谷 5 池袋 6 神奈川 横浜 7 川崎 8 相模原 9 千葉 千葉 10 ...