Hey Uzo
That was my basis:
var sheet = ss.getSheetByName(name); refers to row 7 this calls the array above.
var sheet = ss.getSheetByName(name);