Copy and paste values from one workbook to another

Kamil M

New Member
Joined
Mar 9, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello everyone.
I'm a very begginer VBA user, but I have a problem that i have been fighting with for almost 2 weeks now, and I can't solve it myself. I will be really grateful if someone will able to help. I can only describe it, without sharing any data, beacuse it's work related excercise.

I need to copy and paste the values from one workbook to another based on criteria:
1. Both worksheets have matching headers, but there are more of them in the destination workbook so the macro have to capture only the matching ones.
2. Column in sourcefile - A1 and destfile DI8 has the header ID where in the rows are stored specific ID that should be matched.
3. If there is No match id or in destfile ID is '-' the values in matching column should be "-", duplicates also May come up so i would need the data to be pasted to all matches, not just the first.

I know it's a lot but i tried my best and failed.
I appreciate any help.
Kamil
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,225,231
Messages
6,183,740
Members
453,187
Latest member
SJord

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