1

I cannot get this line of code to work where nowts is the number 12 for example obtained from a ui:

spreadsheet.getRange("L"&(nowts+1):"L"&(nowts+2)).clearContent();

I am trying to clear the contents in the range L13:L14
Whee am I getting the syntax wrong?

1

The syntax of the getRange is wrong. Replace

"L"&(nowts+1):"L"&(nowts+2)

(missing & and : should be inside a pair of quotes)

by

"L"&(nowts+1)&":L"&(nowts+2)
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.