I am using an excel workbook with 32 sheets. However, when I try to put sheet thirty-two at the front of sheet 1 in the workbook using worksheet order it gives an error. Please find the error attached below.
worksheetOrder(wb)<-c(32,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31)