Copy a Sheet to New Sheet Q
Copy the code below and paste it in a standard module. HTH, James
Sub CopySht()
Dim shtName As String
shtName = ActiveSheet.Name
ActiveSheet.Copy after:=Sheets(Sheets.Count)
ActiveSheet.Name = [a5]
Sheets(shtName).Activate
End Sub
"Sean" wrote in message
ups.com...
How would I copy the active Sheet to a newly created Sheet, then
rename "New Sheet" to the value in A5 in the Active sheet, then return
the cursor to the active sheet?
I have essentially a workbook that builds up a new sheet each week
(name of new sheet would be in format dd/mm/yy)
Thanks
|