Hi all.
I am trying to get a script together that will select all sheets (not hidden ones) on opening of a workbook.
We have a vast amount of workbooks that date back to 2006 so I was hoping I could use the PERSONAL.XLSB instead of manually adding code to every workbook.
A lot of the workbooks have differently named sheets so the code needs to be universal so that it works regardless of sheet name/quantity.
I have managed to get the PERSONAL.XLSB to open automatically with one of our workbooks, by recording a dummy macro (personal.xlsb was missing) but now I am at a loss with what to do next!
Can anyone suggest the code? Thank you!
I am trying to get a script together that will select all sheets (not hidden ones) on opening of a workbook.
We have a vast amount of workbooks that date back to 2006 so I was hoping I could use the PERSONAL.XLSB instead of manually adding code to every workbook.
A lot of the workbooks have differently named sheets so the code needs to be universal so that it works regardless of sheet name/quantity.
I have managed to get the PERSONAL.XLSB to open automatically with one of our workbooks, by recording a dummy macro (personal.xlsb was missing) but now I am at a loss with what to do next!
Can anyone suggest the code? Thank you!