A script to automate the creation & update of events in your calendar from a spreadsheet
All you have to do is complete the variables, from eventName
to calendarId
, according to your spreadsheet. To give you an idea, the numbers in the script match this spreadsheet:
As you can see on this screenshot, a button called "Events Calendar" is automatically created in the toolbar of the spreadsheet. All you have to do to update the calendar is click on "Events Calendar > Update Calendar".
- On your spreadsheet, click "Tools > Script Editor", create a blank project, copy paste the script code, update the variables, save & you're done.
- Events are added to the calendar when you click on "Events Calendar > Update Calendar", if the "Added to Calendar" cell of the event is empty.
- When an event is added to the calendar, the "Added to Calendar" cell is filled with a "y", preventing it from being added several times.
- To delete an event, insert "n" in the "Added to Calendar" cell of this event.
- When an event is deleted from the calendar, the "Added to Calendar" cell will be filled with a "d", letting you know it was deleted and preventing it from being re-added.