Apps Script All Day Events

Apps Script All Day Events

Since last we spoke I’ve made some short videos…

  1. Microsoft table breaks mobile view
  2. Combine Excel Data onto New Lines
  3. Avoid SPILLing in Excel Tables

And in fact, I’ve got more short videos in store alongside the longer ones. These have been a fantastic way to get a little creative juices flowing and out into the world as well as hit a couple short, informative concepts without making a full-fledged video.

Now to the sheets…

Calendar Apps Script

I’ve revisited a topic that I messed with a while back. One of my most popular videos about using Apps Script to create calendar events did not go over creating all day events or recurring events

So, that’s what I covered this time.

Much of the approach is the same, and here are the bare essentials. The walkthrough video is embedded below if you want to go deeper.

  • I set up a sheet with named ranges to simplify the code. We have a calendarID range and an EventList range.

Article content

We get the calendarID from our Google Calendar settings and paste it in our spreadsheet.

The EventList is the table with our events.

Article content

  • For the simplest example, we need only a title and a date. Here’s what it looks like:

Article content

The meat and potatoes is our events.forEach loop where we go through each row without a checkbox and add the all day event to our calendar by using CalendarApp.getCalendarbyID().

This makes it very easy to add all day events in bulk from your spreadsheet to your Google Calendar.

If you want to follow along in the demo sheet I made, here it is.

And the video walkthrough I did is below 👇


Article content
Progress and Perfection logo

Something a tad different…

I started another newsletter in 2024. It’s a daily reflection centered around recovery from addiction. If that sounds interesting, check it out here

Thank you so much!

It means a lot that you’ve read this, and I hope it’s informed and/or entertained you for a few moments today!

I would love to say hi. Here are the best places to find me:

Need More Help?

  • Need a powerful automation tool for Google Sheets? Try Coefficient to automatically import data and sync with your business systems.
  • Hire an expert to help complete your next Google Sheets, Apps Script or Google Workplace project.

I think that's what attracts me to apps script and coding in general: the feeling of FINALLY getting it to do exactly what you wanted it to. Regardless of the amount of time sunk into it 😂

To view or add a comment, sign in

More articles by Eamonn Cottrell

  • How to Use VBA

    Create a Workbook Table of Contents I put off learning VBA for a long time. Like 10 years long.

    2 Comments
  • How to Use the IF function

    Don't let your spreadsheet intimidate you. We’re all familiar with the logic behind IF().

  • Apps Script Form Submission to Google Calendar

    Since last we spoke I’ve… Set a new personal marathon record (3:14:30) Played some old school Zelda with my kids (SNES)…

    4 Comments
  • 6 Ways to Number in Excel

    Since last we spoke I’ve been recording several new long and short form videos. Check out the YouTube Channel if you…

  • Sort in a Cell

    Get these handy tips in your email by subscribing to my free newsletter at https://got-sheet.beehiiv.

    2 Comments
  • Name Those Ranges

    Since last we spoke… It’s snowed 7+ inches at our house! The kids are in heaven. I’ve driven to Mississippi and back…

  • Double XLOOKUP

    Since last we spoke I’ve… Run my first 5K in over a decade Run a 50K Started writing a book… Now to the sheets… Double…

  • Time Zones in Google Sheets

    Since last we spoke I’ve… Run 40 miles up and down Boring Road Built an open source memory verse website Hung Christmas…

  • Deck the Halls With QUERIES

    Hi there! Since we last spoke I've Run a couple half marathons (of my own making) Analyzed a collectible card game that…

  • Abuse Your Spreadsheet

    AKA: How to use your spreadsheet to do non-financial, cool challenges. The Palindrome Challenge Since last we spoke…

Others also viewed

Explore content categories