Skip to content
Advertisement

Tag: google-apps-script

Why do I get “ReferenceError: test is not defined”

Within my Google Script Project I got two GS files Code.gs and other.gs. code.gs looks like other.gs looks like when I run the function primary I get when I move the function other to the file code it works. Could someone explain why? Is there any way the other file could be anywhere in the project? Answer Explanation: Everytime you

‘Range not found’ when trying to input value into first empty cell

Google Script/Spreadsheet issue, here. Am trying to copy data from one cell and put it into the first empty cell in column E. When I perform the following, I get ‘Range not found’ on line 15: I’ve tried replacing report.getRange(lastRow).setValue(row[1]); with something like report.getRange(‘E5’).setValue(row[1]); and it works fine, so there must be something wrong with my find empty cell/row function.

Advertisement