You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Как вариант: добавить Apps Script в самой гугл-таблице с настройками + настроить раз в месяц автоматическое копирование файла в отдельную директорию. (Для желающих можно написать скрипт для копии отдельного листа и сохранять им на гугл-диск).
Код скрипта:
functionmakeCopyAll() {
// generates the timestamp and stores in variable formattedDate as year-month-date hour-minute-secondvarformattedDate = Utilities.formatDate(newDate(), "GMT", "dd-MM-yyyy' 'HH:mm:ss");
// gets the name of the original file and appends the word "copy" followed by the timestamp stored in formattedDatevarname = SpreadsheetApp.getActiveSpreadsheet().getName() + " Copy " + formattedDate;
// gets the destination folder by their ID. REPLACE with your folder's ID that you can get by opening the folder in Google Drive and checking the URL in the browser's address bar// **!!!указать ID гугл-диска, куда копировать архивы**vardestination = DriveApp.getFolderById("11Js1x98dfZgdOiuIFDyzIvTx2JIInRi0");
// gets the current Google Sheet filevarfile = DriveApp.getFileById(SpreadsheetApp.getActiveSpreadsheet().getId())
// makes a copy of "file" with "name" at the "destination"varfileNew = file.makeCopy(name, destination);
}
The text was updated successfully, but these errors were encountered: