I have a workbook with a worksheet named "Report"... this sheet and it's macros generate a report from data on another sheet...
I'm adding a button to copy the (filled) Report sheet to a new workbook, rename the new sheet in the new workbook "Rep[Name]", then save and close the new workbook...
I've recorded a maco of me doing these tasks manually, but what's recorded seems very generic, and does not seem to specify what's really occurring...
For example (in part);
> Rightclick on the Report tab
> Move or Copy
> To Book: (new book)
> [x]Create a Copy
> [OK]
yields:
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 10/17/2006 by Bryan
'
Sheets("Report").Select
Sheets("Report").Copy
End Sub
This recorded macro does not specify (new book), or Before:"Sheet1" as was the result of my actions... and when replayed back, only makes a copy in the active workbook, before the active sheet...
Please offer suggestions as to what the copy code should look like, as the recorder macro clearly is not it...
TiA,