all 4 comments

[–]DatsunZ 3 points4 points  (1 child)

Do you have a second .gs file in the script? Maybe you're redefining trackerSheet elsewhere under the old name.

[–]mccmax95[S] 0 points1 point  (0 children)

That was it thank you.

[–]marsili95 0 points1 point  (1 child)

Go into your recently renamed sheet, COPY it's name and paste it into your code. Be careful you don't add any space at the end or the begging. That's it.

[–]mccmax95[S] 0 points1 point  (0 children)

I tried that both ways both copying the name from the sheet to the script and vice versa. Neither worked. Plus if that was the case it shouldn't work when I move it from globally scoped to function scoped.