Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default Worksheet copy to another workbook

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 772
Default Worksheet copy to another workbook

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

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

--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"joecrabtree" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy worksheet from one workbook to a master workbook mvannatta Excel Worksheet Functions 3 April 15th 09 08:32 PM
How to Copy entire Worksheet from Workbook S to Workbook D kris Excel Programming 3 June 20th 07 02:03 PM
Copy Data from Workbook into specific Worksheet in other Workbook? kingdt Excel Discussion (Misc queries) 1 March 16th 06 06:55 PM
How do I copy a worksheet form a workbook in my workbook Neil Atkinson Excel Programming 1 October 12th 05 12:23 PM
copy worksheet from closed workbook to active workbook using vba mango Excel Worksheet Functions 6 December 9th 04 07:55 AM


All times are GMT +1. The time now is 04:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"