A
A
amartynyuk2021-03-18 12:07:43
Google Sheets
amartynyuk, 2021-03-18 12:07:43

How to do cal.createAllDayEvent(): in Google Spreadsheets?

How to do cal.createAllDayEvent(): in Google Spreadsheets?
The data is in cells B2, B3, B6
It seems that I pulled them up correctly, now the actual output to the calendar needs to be done

function calendarSidevich() {
  
var cal = CalendarApp.getCalendarById("[email protected]");
var table = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();

var title = MySpreadSheet.getRange('B6').getValue();
var date = MySpreadSheet.getRange('B2').getValue();
var lacation = MySpreadSheet.getRange('B3').getValue();

cal.createAllDayEvent():

}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2021-03-18
@amartynyuk

Try changing "MySpreadSheet" to "table"
And in createAllDayEvent(), pass "title" and "date" for example
cal.createAllDayEvent(title, date)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question