Macro: Loop Through Date Field, Copy And Paste Records Into Relevant Worksheet

jsmith2018

New Member
Joined
Jan 4, 2018
Messages
1
Hello,

I am looking to create a macro that selects records based on their date field (this data is stored in a worksheet called "AllData") and copy and pastes these records into the correct month's worksheet in the same Excel file (i.e. "January 2018", "February 2018", etc).

I've created a mock Excel file and attached a screenshot to better explain what I am trying to accomplish. The macro would loop through the data in the "AllData" worksheet, select all records that were taken in January, paste these records into the "January 2018" worksheet, then repeat the process for February, March, etc.

Any help is greatly appreciated. Thank you for your time.

554597d1515091593-macro-loop-through-date-field-copy-and-paste-records-into-relevant-worksheet-180104_efq.jpg
 

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