Copy Data from one excel workbook to another if name workbook matches

kshivanand21

New Member
Joined
Jan 19, 2022
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hey guys, I hope you all doing well.

I wanted to create macro for the following case, i have multiple workbook in one folder following as 1.01.2021 Day & 1.01.2021 Night to 31.01.2021 Day 31.01.2021 & another folder containing workbook named as 1.01.2021 DS & 1.01.2021 NS. Now I want to create macro to copy data from 1.01.2021 Day to 1.01.2021 DS & 1.01.2021 Night to 1.01.2021 NS respectively. Follow the same rule for rest of dates.

Thanks & Regards
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
are the DS & NS workbooks blank before the data is copied to them and are you copying the entire contents of Day & Night over to them
 
Upvote 0
DS & ns workbook has data, i am copying entire one column from day & night to ds & ns workbook. Thanks mate for reply.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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