Google Apps Script
Introduction
用語
- SpreadSheetApp --- Google Spreadsheet アプリ
- SpreadSheet --- 個々のファイル
- Sheet --- タブ、ワークシート
- Range --- 選択範囲
アクティブとは
- active sheet --- 表示中のシート
- active range --- 表示中のシートの中で、ハイライトされている箇所
- active cell --- 表示中のシートの中で、フォーカスされている単一のセル
カスタムファンクション
/**
* ドルを日本円に変換する
*
* @param {number} dollars ドル
* @return {number} 日本円
* @customfunction
*/
function USDTOJPY(dollars) {
const rate = 0.99;
const swissFrancs = dollars * rate;
return 'JPY' + swissFrancs;
}