Copy a sheet and rename it
Hi
Try this:
Sub Macro1()
Dim newSh As Worksheet
Dim orgSh As Worksheet
Set orgSh = Worksheets("Sheet1")
Set newSh = Sheets("Sheet1").Copy(After:=Sheets(Sheets.Count))
newSh.Name = orgSh.Range("A1").Value
End Sub
Regards,
Per
"Dorian C. Chalom" skrev i meddelelsen
...
I am trying to create a macro that would copy a sheet within the same
workbook and rename it with the value from a cell on the sheet it copied it
from. Please help...
Thank you...
|