Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy all sheets to a new workbook | Setting up and Configuration of Excel | |||
Copy several sheets from one workbook into another at the same tim | Excel Discussion (Misc queries) | |||
copy workbook sheets? | Setting up and Configuration of Excel | |||
Copy 1-4 sheets to a new workbook | Excel Programming | |||
copy/move sheets within workbook | Excel Discussion (Misc queries) |