Hi Jim,
Why don't you revert the easiest and the most illustrative method of writing
a macro (and learning how to write a macro) by using the macro recording
facility?
There may be slight changes depending on your Excel version, but generally
you click
Tools --> Macro --> Record New Macro,
then mimic exactly what you want to happen, stopping recording at the proper
point,
then open the macro and make fine adjustments.
Here's the output I obtained using my own advice:
--------
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 03.01.2009 by Engin Tarhan
'
'
Cells.Select
Selection.Copy
Sheets("Sheet2").Select
Cells.Select
ActiveSheet.Paste
End Sub
----------
This code copies all the cells of a sheet to an existing sheet. Creating a
new sheet using the name of some value in a cell is certainly more tricky,
but I leave the joy of achieving the goal to you.
Actually, copying all the cells of a worksheet is equivalent to copying that
worksheet under a new name, and may be a better way of doing your second
option, if you want the new sheet to include the contents of the first one.
Good luck,
Engin Tarhan