I actually got it fixed for the current sheet, my new problem comes after when the copysheet is generated. All the functions within the original sheet are working except the hiding function and an error 400 is generated by excel.