How to make a selected value in a data validation start a different macro everytime a different value is selected

ajgolfs

New Member
Joined
May 10, 2010
Messages
40
Let me try to explain what I'm trying to do. I have data that are separted into different years. FY10,FY11,FY12,FY13. Each year of data is a named range (FY10,FY11,FY12,FY13). I have a column that has a data validation that allows you to pick each year. I'm trying to find a way that when you click on the data validation, and select a different year, have VBA cut and paste the row at the top of the FY named range selected. For example. If one of the rows was under FY10 and I clicked on the cell with the data validation and changed it to FY11, have VBA cut the row and paste it at the top of the FY11 range. And also be able to do that for FY11,FY12, and FY13. I need it to move the row everytime you change the data validation year. Please help.

Thanks,

AJ
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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