Archive VB Script to seperate tab

NGB82KS

Board Regular
Joined
Nov 7, 2019
Messages
82
Office Version
  1. 2016
I have a workbook with 2 Tabs (Pivot; Archive)
On the Pivot tab (which I update daily) I have a Date in P1 and then data in Q4:Q7 and X4:X8.
On my Archive tab, I have a table with the Date from now till the end of the year (Column A), and then Columns B:J which match the rows from Q4:Q7 and X4:X8 on the Pivot Table. (essentially converted rows to columns)
When I run the VB script, I'd like to copy the data on the Pivot Tab (Q4:Q7 and X4:X8) using the Date in P1, then match that date on the Archive Tab in Column A, then paste the values (NOT FORMULA) across B:J.
.... so take q4 go to archive tab, match the date and then paste in lets say b12 which matches the date for that day, then repeat with q5>B13 etc...
How would I create the VB script to first match the dates and then copy each row to its respective column?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,214,981
Messages
6,122,565
Members
449,089
Latest member
Motoracer88

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