It works since I have changed the Locale setting. So the formulae are translated correctly.
But still...By changing the order of the sheets and setting setActiveSheetIndex() accordingly gives #N/A as a result instead.
But still...By changing the order of the sheets and setting setActiveSheetIndex() accordingly gives #N/A as a result instead.