Copy & Paste from workbook to another with criterias

Anthony86

Board Regular
Joined
Jan 31, 2018
Messages
70
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Looking for help with a copy and paste from one workbook to another with a certain criteria.

I'll need data copied from B3:C68 and pasted to another workbook(test1.xlsm) but different sheets/columns depending on the day. The source range will never change(B3:C68), what will change will be day and shift. The day value is in cell F3 & Shift value in H3

1711025783117.png


Destination file;

Depending on the day, the code will need to search workbook for the correct sheet;
Sunday=Sun
Monday=Mon
Tuesday=Tues
Wednesday=Wed
Thursday=Thur
Friday=Fri
Saturday=Sat

and paste the data in B6:C72 if the shift value is A or B, if shift value is C or D then it needs to be pasted into G6:H72
 

Attachments

  • 1711025484398.png
    1711025484398.png
    7.3 KB · Views: 5

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,223,914
Messages
6,175,353
Members
452,638
Latest member
Oluwabukunmi

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