Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy worksheet to another Workbook 1

Status
Not open for further replies.

smurf01

IS-IT--Management
Jul 6, 2002
470
GB
Hi,
I want to create a copy of a sheet from workbook and put it into another workbook, this i can do fine however I also want the copied worksheet to be put as the last sheet. I have used a macro and then tried to edit it without much success, i have shown it below.

Code:
Sub CopySummary()

    Sheets("Summary").Select
    Sheets("Summary").Copy After:=Workbooks("OTIF_2003.xls").Worksheets(Worksheets.Count)
End Sub

Regards

Paul
 
Hi,
Code:
Sub CopySummary()
    Sheets("Summary").Copy After:=Workbooks("OTIF_2003.xls").Worksheets(Workbooks("OTIF_2003.xls").Worksheets.Count)
End Sub
:)

Skip,
Skip@TheOfficeExperts.com
 
Skip to the rescue again, thank you

[2thumbsup]

Regards

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top