Skip to content

Instantly share code, notes, and snippets.

View AmadeusNissen's full-sized avatar

AmadeusNissen

View GitHub Profile
@AmadeusNissen
AmadeusNissen / google-sheets-to-calendar.gs
Created February 21, 2025 15:30
Google Sheets to Google Calendar Automation Script
function addLinkedInPostsToCalendar() {
// 🔹 STEP 1: Define your Google Calendar
var calendarId = "YOUR_CALENDAR_ID@GMAIL.COM"; // 🔄 Replace with your Google Calendar ID
var calendar = CalendarApp.getCalendarById(calendarId);
// 🔹 STEP 2: Get the correct Google Sheet and data range
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("YOUR SHEET NAME"); // 🔄 Replace with your sheet name
if (!sheet) {
Logger.log("❌ Sheet not found. Please check the sheet name.");
return;