@Unbreachable Sure here it is:
function myFunction() {
var oneMonth = 1;
var DocSaveTriggerDay = new Date();
if(DocSaveTriggerDay.getMonth()+oneMonth){
ScriptApp.newTrigger("myFunction")
.timeBased()
.onMonthDay(1)
.create();
var ss = SpreadsheetApp.getActiveSpreadsheet();
var copyVar = ss.copy("Copy " + ss.getName() + " " + (DocSaveTriggerDay)-(oneMonth));
}
/////////////////// Now, find a way to clear the content after the copying is done.
if(copyVar){
var first = ss.getSheetByName("Sheet1");
function myFunction() {
var oneMonth = 1;
var DocSaveTriggerDay = new Date();
if(DocSaveTriggerDay.getMonth()+oneMonth){
ScriptApp.newTrigger("myFunction")
.timeBased()
.onMonthDay(1)
.create();
var ss = SpreadsheetApp.getActiveSpreadsheet();
var copyVar = ss.copy("Copy " + ss.getName() + " " + (DocSaveTriggerDay)-(oneMonth));
}
/////////////////// Now, find a way to clear the content after the copying is done.
if(copyVar){
var first = ss.getSheetByName("Sheet1");