steve.waye
Board Regular
- Joined
- Jul 8, 2010
- Messages
- 68
Hi all,
I'm after a way to automatically rename a worksheet based on a date entered in cell D2.
The date has slashes (/) so I'm aware these can't be used in the name of the worksheet. I assume they can be changed in the code.
It would be ideal if a date of 28/10/18 in cell D2 became 28-Oct-18 as the sheet name.
Also, I want to be able to click a button on the active worksheet to create a copy (new worksheet) and have a popup that allows you to enter the date for cell D2 on the new worksheet, which will subsequently rename the new worksheet.
Hope this makes sense.
It's been a while since I did any VBA so guidance on where to paste the code would also be appreciated.
Thanks.
I'm after a way to automatically rename a worksheet based on a date entered in cell D2.
The date has slashes (/) so I'm aware these can't be used in the name of the worksheet. I assume they can be changed in the code.
It would be ideal if a date of 28/10/18 in cell D2 became 28-Oct-18 as the sheet name.
Also, I want to be able to click a button on the active worksheet to create a copy (new worksheet) and have a popup that allows you to enter the date for cell D2 on the new worksheet, which will subsequently rename the new worksheet.
Hope this makes sense.
It's been a while since I did any VBA so guidance on where to paste the code would also be appreciated.
Thanks.