function onEdit(event){
var EventCal = CalendarApp.getCalendarById("exa...@gmail.com");
EventCal.createAllDayEvent('Apollo 11 Landing',new Date('September 20, 2019'));
}
Hi all, this is my first post here, I hope you can help me.I wrote the following script to create a calendar event from a spreadsheet. If I run it from the script editor it works, but when I run it from the spreadsheet it doesn't. It stops right on the CalendarApp line.
EventCal.createAllDayEvent('Apollo 11 Landing',new Date('September 20, 2019'));
}
Thank you in advance!