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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,216,028
Messages
6,128,392
Members
449,445
Latest member
JJFabEngineering

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