LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Copy Sheets to another workbook

Hello,

I am trying to copy over a range of sheets from one workbook to
another but there is an error in my VBA statement.
Could someone tell me what is going wrong?

'Copy Trial Balances worksheet

ChDir "H:\Risk_Management\BarraOne\ConsistancyCheck\Flas h Report
Files"
Workbooks.Open Filename:= _
"H:\Risk_Management\BarraOne\ConsistancyCheck\Flas h Report
Files\Trials.xls"

For Each sh In ThisWorkbook.Sheets
If sh.Name < "" Then
sh.Copy
Selection.Copy
After:=Workbooks("ConsistancyTemplate.xls").Sheets ("Summary")
Windows("Trials.xls").Activate
ActiveWindow.Close



Many thanks!

Rgds,
Robert
 
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 all sheets to a new workbook futbol Setting up and Configuration of Excel 3 November 16th 07 12:09 PM
Copy several sheets from one workbook into another at the same tim WiFiMike2006 Excel Discussion (Misc queries) 2 February 8th 07 08:36 PM
copy workbook sheets? L. Setting up and Configuration of Excel 3 November 29th 05 03:30 AM
Copy 1-4 sheets to a new workbook ole_ Excel Programming 3 June 30th 05 11:11 AM
copy/move sheets within workbook Roger B. Excel Discussion (Misc queries) 1 May 5th 05 05:43 PM


All times are GMT +1. The time now is 09:41 PM.

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

About Us

"It's about Microsoft Excel"