scotthannaford1973
Board Regular
- Joined
- Sep 27, 2017
- Messages
- 115
- Office Version
- 2010
- Platform
- Windows
Hi
I have a bit of coding that copies an existing worksheet (called "SCHEMES") and puts it before another worksheet ("AUDIT") but I'd like to add in some code that will automatically take the content of cell A1 of the sheet that's copied across and automatically uses that as the worksheet name. Any ideas?
TIA
Sub BaselineCopyOfSchemes()
Sheets("SCHEMES").Select
Sheets("SCHEMES").Copy Before:=Sheets("AUDIT")
With ActiveWorkbook.ActiveSheet.Tab
.ThemeColor = xlThemeColorAccent4
.TintAndShade = 0.399975585192419
End With
MsgBox ("Now rename the worksheet tab to include the date" & vbNewLine & "Use the format YYYY-MM-DD" & vbNewLine & "e.g. 2020-06-19")
End Sub
I have a bit of coding that copies an existing worksheet (called "SCHEMES") and puts it before another worksheet ("AUDIT") but I'd like to add in some code that will automatically take the content of cell A1 of the sheet that's copied across and automatically uses that as the worksheet name. Any ideas?
TIA
Sub BaselineCopyOfSchemes()
Sheets("SCHEMES").Select
Sheets("SCHEMES").Copy Before:=Sheets("AUDIT")
With ActiveWorkbook.ActiveSheet.Tab
.ThemeColor = xlThemeColorAccent4
.TintAndShade = 0.399975585192419
End With
MsgBox ("Now rename the worksheet tab to include the date" & vbNewLine & "Use the format YYYY-MM-DD" & vbNewLine & "e.g. 2020-06-19")
End Sub