Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, Ive got two books open, say book a and book b. I need to systematically go through all the sheets in Book A and for each sheet select all cells, copy, and then goto the sheet in Book B (with the same name, but which is blank) and paste all the cells. Your expert held would be most appreciated by me (not so expert!) Regards D *** Sent via Developersdex http://www.developersdex.com *** |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Darin,
try something like this: Sub test() Dim sh As Worksheet For Each sh In Workbooks("A.xls").Worksheets sh.Cells.Copy Destination:=Workbooks("B.xls").Worksheets(sh.Name ).Cells(1, 1) Next sh End Sub -- Hope that helps. Vergel Adriano "Darin Kramer" wrote: Hi, Ive got two books open, say book a and book b. I need to systematically go through all the sheets in Book A and for each sheet select all cells, copy, and then goto the sheet in Book B (with the same name, but which is blank) and paste all the cells. Your expert held would be most appreciated by me (not so expert!) Regards D *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy and paste contents of sheet | Excel Programming | |||
copy and paste and clipboard contents message | Excel Programming | |||
copy paste delete cell contents | Excel Discussion (Misc queries) | |||
Cut and paste or Copy just cell contents? | Excel Discussion (Misc queries) | |||
Copy contents in a row and paste in a column | Setting up and Configuration of Excel |