Worksheet copy to another workbook

  • Thread starter Thread starter joecrabtree
  • Start date Start date
J

joecrabtree

To all,

I have a workbook called GETDATA.xls. I want to be able to copy all
the worksheets in this workbook apart from one called ' START' to
workbook ANALYSIS.xls.

Please could someone help me with this?

Thanks

Joe Crabtree
 
put this in your ThisWorkbook module.
Sub moveSheets()
For i = 1 To Sheets.Count
If Sheets(i).Name <> "start" Then

Sheets(i).Move Before:=Workbooks("analysis.xls").Sheets(1)
End If
Next
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top