Copying & Pasting specific dynamic range of columns into different workbook?

Joined
Jul 31, 2017
Messages
9
Hello,

I am having difficulties with what should be an easy macro....

I am trying to link two workbooks so that specific column values(only) get pasted into active workbook when activated by command button.

Source wkb: "Inventory Master List (Macro)"
Destination wkb: "Inventory Check (Macro)"

Columns to transfer value:
Source wkb: 1, 2, 3, 4, 9
Destination wkb: 1, 2, 3, 4, 5 (by command button located in this wkb)

The range can amass up to 300 rows.

Any help is VERY MUCH APPRECIATED!!!

Thank you in advance,
-PJ
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Code:
Dim dWS As Worksheet, sWS As Worksheet
Set dWS = Workbooks("InventoryCheck (Macro)").Sheets("Sheet1")
Set sWS = Workbooks("Inventory Master List (Macro)").Sheets("Sheet1")
dWS.[A:E] = sWS.[A:E].Value
dWS.[I:I] = sWS.[I:I].Value
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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