VBA:Coping to another Workbook

bamaisgreat

Well-known Member
Joined
Jan 23, 2012
Messages
831
Office Version
  1. 365
Platform
  1. Windows
I am trying to copy a Range of cells called "Line4" to another workbook "Fmi Saw Archive.xls"
(The range consist of cells A4,A6,A12,A15,A16,A17)
After copying "Line4" I need it to copy a Range called "Line5" to the next empty row.
(This Range is bascially the same B4,B6,B12,B15,B16,B17)
and so on and so on
I have 21 Different ranges I need to do this with. They are almost the same as mentioned above, just going to the next line.
Im not sure if it is required but to me it is not necessary for "Fmi Saw Archive.xls" to open when doing the above, but if so I would like it to close afterwards. Thanks

The File path to "Fmi Saw Archive.xls" is
Code:
Workbooks.Open Filename:="H:\Burney Table\Fmi Saw Archive.xls"
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,223,275
Messages
6,171,122
Members
452,381
Latest member
Nova88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top