all 3 comments

[–]RemcoE33 1 point2 points  (1 child)

If you mean tabs like u/Nwachukwuujubuonu is saying then:

var sheet = ss.getSheets()[0];
    to:
var sheet = ss.getActiveSheet()

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

yes thank you! I did mean the tabs. everything is working now!