tourless
Board Regular
- Joined
- Feb 8, 2007
- Messages
- 144
- Office Version
- 365
- Platform
- Windows
Hi Folks,
I'm looking for a way to rename all the sheets in a workbook. We have many workbooks that contain a worksheet for each week of the year. They are all nemd in the following convention... "WE 01-07-23", "WE 01-14-23", etc. When preparing new workbooks for the coming year, we make copies of the current workbooks and have to rename all the sheets manually. Is it possible to rename them all with a bit of code? I've looked around the forums and have found posts that speak to renaming sheets but only by taking a value from a given cell or cells, but nothing that looks to my problem.
My thought is to name the first sheet appropriately then programmatically rename the remaining sheets. My problem is I don't know enough about Excel to know where to find and access an existing worksheets Name value, place it in a variable and manipulate it from there. Can anyone help point me in the right direction? -thanks.
I'm looking for a way to rename all the sheets in a workbook. We have many workbooks that contain a worksheet for each week of the year. They are all nemd in the following convention... "WE 01-07-23", "WE 01-14-23", etc. When preparing new workbooks for the coming year, we make copies of the current workbooks and have to rename all the sheets manually. Is it possible to rename them all with a bit of code? I've looked around the forums and have found posts that speak to renaming sheets but only by taking a value from a given cell or cells, but nothing that looks to my problem.
My thought is to name the first sheet appropriately then programmatically rename the remaining sheets. My problem is I don't know enough about Excel to know where to find and access an existing worksheets Name value, place it in a variable and manipulate it from there. Can anyone help point me in the right direction? -thanks.