I want to run a function when a google sheet is opened for which i am trying to call a function using function onOpen(e)
but I get error when i try to debug
Missing { before function body. (line 8, file "Code") (row where function UpdateColData is called)
here is my code:
function onOpen(e) {
SpreadsheetApp.getUi()
.createMenu('Scripts')
.addItem('test', 'Test1')
.addToUi();
function UpdateColData();
}