Conditional Copy, and Paste

Peter Muller

Board Regular
Joined
Oct 15, 2018
Messages
89
Office Version
  1. 2016
Platform
  1. Windows
Hello Experts,

I please need your assistance again. I have a problem, and have absolutely no idea how to go about resolving it. Please help.
  • Each task in the "Task_Table" is either required on a specific day (Mon-Fri), or every day.
  • When I activate the macro, today's day / the current day is used to identify which tasks must be copied and pasted in the input document which is linked to the pivot, with the daily tasks also copied from the 'Task_Table and pasted into the same input document.
  • If there are 10 daily tasks, and 5 for a Mon, then running the macro and selecting "Mon", 15 tasks must be copied from the Tasks_Table and pasted into the input doc, and if 3 tasks on a Tue, then 13 tasks to be pasted into the input doc when "Tue" is selected.
  • Each Day's tasks must be pasted below the last task of the 'previous day'.
  • The input doc is in columns B:M, and the copied info is to be pasted into col D. The cell address where I select the relevant day for the macro is in "O2"

Task_TableInput doc linked to Pivot - Columns B-M
TaskFrequencyDescription 'Column D'Mon
ReconcilliationDailyReconcilliation
Replenish cashWedAge Analysis - A-F
Age Analysis - A-FMonBank Recons
Age Analysis - G-LTueUpdated Skills Matrix
Age Analysis - M-QWedTNA, submitted
Age Analysis - R-ZThuT scheduled & Monitored
Supplier Recons - A-FTueRegisters monitored
Supplier Recons - G-LWedLate & Absent actioned
Supplier Recons - M-QThu
Supplier Recons - R-ZFri
Bank ReconsDaily
Updated Skills MatrixDaily
TNA, submittedMon
T scheduled & MonitoredDaily
Registers monitoredDaily
Late & Absent actionedDaily
 

Some videos you may like

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Peter Muller

Board Regular
Joined
Oct 15, 2018
Messages
89
Office Version
  1. 2016
Platform
  1. Windows
Hello Experts,

I please need your assistance again. I have a problem, and have absolutely no idea how to go about resolving it. Please help.
  • Each task in the "Task_Table" is either required on a specific day (Mon-Fri), or every day.
  • When I activate the macro, today's day / the current day is used to identify which tasks must be copied and pasted in the input document which is linked to the pivot, with the daily tasks also copied from the 'Task_Table and pasted into the same input document.
  • If there are 10 daily tasks, and 5 for a Mon, then running the macro and selecting "Mon", 15 tasks must be copied from the Tasks_Table and pasted into the input doc, and if 3 tasks on a Tue, then 13 tasks to be pasted into the input doc when "Tue" is selected.
  • Each Day's tasks must be pasted below the last task of the 'previous day'.
  • The input doc is in columns B:M, and the copied info is to be pasted into col D. The cell address where I select the relevant day for the macro is in "O2"

Task_TableInput doc linked to Pivot - Columns B-M
TaskFrequencyDescription 'Column D'Mon
ReconcilliationDailyReconcilliation
Replenish cashWedAge Analysis - A-F
Age Analysis - A-FMonBank Recons
Age Analysis - G-LTueUpdated Skills Matrix
Age Analysis - M-QWedTNA, submitted
Age Analysis - R-ZThuT scheduled & Monitored
Supplier Recons - A-FTueRegisters monitored
Supplier Recons - G-LWedLate & Absent actioned
Supplier Recons - M-QThu
Supplier Recons - R-ZFri
Bank ReconsDaily
Updated Skills MatrixDaily
TNA, submittedMon
T scheduled & MonitoredDaily
Registers monitoredDaily
Late & Absent actionedDaily

I re-posted this on 06 May with a new thread title
 

Watch MrExcel Video

Forum statistics

Threads
1,123,133
Messages
5,599,912
Members
414,347
Latest member
tbanack

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
Top