Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ss_sheet_copy-name() {
- /****************************************************************
- スプレッドシートのシートのコピーと名前変更
- ****************************************************************/
- // 現在のスプレッドシートの取得
- var ss_active_all = SpreadsheetApp.getActiveSpreadsheet();
- // 書出シートの作成(temp_listのコピー作成)
- var ss_sheet_temp = ss_active_all.getSheetByName("temp_sheet"); //temp_sheetというシートがある前提
- var ss_sheet_copy = ss_sheet_temp.copyTo(ss_active_all);
- // コピーしたシートの名前変更
- ss_sheet_copy.setName("**************"); // 自由に命名
- }
Add Comment
Please, Sign In to add comment