This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 起動時処理:スプレッドシートのメニューに追加 | |
function onOpen(event){ | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
// メニューの項目を作成 | |
var menu = [ | |
{name: '翻訳を実行', functionName: 'translate'}, | |
{name: '訳の行だけ別窓に表示', functionName: 'getTranslateText'}, | |
{name: 'シートをクリア', functionName: 'clearSheet'}, | |
]; | |
ss.addMenu('翻訳', menu); // メニューを追加 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 宛名印刷&住所録 テスト用データ | |
/* | |
1000001 ◯◯県◯◯市◯◯◯◯◯,1丁目2−3 ◯山 ◯太郎 様,◯子 様 2000001 ◯◯県◯◯市◯◯ 1丁目2−3,◯◯アパート◯◯◯号室 ◯村 ◯郎 | |
1000002 ◯◯◯県◯◯◯市◯◯◯,2丁目3−4 ◯木 ◯男 様 2000001 ◯◯県◯◯市◯◯ 1丁目2−3,◯◯アパート◯◯◯号室 ◯村 ◯郎 | |
1000003 ◯◯県◯◯◯郡◯◯◯◯,3丁目4−5 ◯村 ◯一 様,◯◯美 様 2000001 ◯◯県◯◯市◯◯ 1丁目2−3,◯◯アパート◯◯◯号室 ◯村 ◯郎 | |
*/ | |
// はがきのシートの設定 | |
function setHagakiSheet(){ | |
var margin_left = 1; // 左側の余白 |