MattArmitt
New Member
- Joined
- Aug 29, 2007
- Messages
- 36
Hi
I am having problems with the following code where I am trying to copy data from one workbook to another
Workbooks("Poland NPO1014").Worksheets("Leszno").Range(Cells(10, 32), Cells(163, 32)).Copy Destination:=Workbooks("VBA NPO Report2").Worksheets("Leszno").Range(Cells(10, 33), Cells(163, 33))
I think it is something to do with the fact that I am trying to copy from one workbook to another. If I change the destination workbook to the same workbook (as per the below code) it works fine.
Workbooks("Poland NPO1014").Worksheets("Leszno").Range(Cells(10, 32), Cells(163, 32)).Copy Destination:=Workbooks("Poland NPO1014").Worksheets("Leszno").Range(Cells(10, 33), Cells(163, 33))
Has anybody got any ideas how I can alter the code so that it works?
Thanks
Matt
I am having problems with the following code where I am trying to copy data from one workbook to another
Workbooks("Poland NPO1014").Worksheets("Leszno").Range(Cells(10, 32), Cells(163, 32)).Copy Destination:=Workbooks("VBA NPO Report2").Worksheets("Leszno").Range(Cells(10, 33), Cells(163, 33))
I think it is something to do with the fact that I am trying to copy from one workbook to another. If I change the destination workbook to the same workbook (as per the below code) it works fine.
Workbooks("Poland NPO1014").Worksheets("Leszno").Range(Cells(10, 32), Cells(163, 32)).Copy Destination:=Workbooks("Poland NPO1014").Worksheets("Leszno").Range(Cells(10, 33), Cells(163, 33))
Has anybody got any ideas how I can alter the code so that it works?
Thanks
Matt