Create VBA code to move a row of data based on a selection in a drop down list

Doc56

New Member
Joined
Oct 26, 2022
Messages
5
Office Version
  1. 2013
Platform
  1. Windows
Hi all,

I have a sheet that contains the master data (Sheet called "Workplan"). I have also created a sheet called "Job Analysis".

In the Job Analysis sheet I have created a drop down list and what I am hoping is to get code that will copy rows of data based on the condition/selection of the drop down list.
The criteria listed in the drop down list are: "Completed", "In-Progress", "On-Hold".

Therefore, as an example: if I select "Completed" from the drop down I want all the rows that have a job status listed as: "Completed" in the Workplan sheet to populate in the Job Analysis sheet

Workplan Sheet:
1666835931589.png


Job Analysis Sheet:
1666836040207.png


The work Plan sheet acts as the master and new rows of data will be added so I am hoping the code will allow for new data to filter through based on the condition in the drop down selection.
Sorry if I am unclear. Also I am not using Microsoft 365 or Excel 2021 so cannot use the new "Filter" function which would be perfect for this scenario.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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