VBA to copy validation from last cell to new cells?

backstabbathX

New Member
Joined
Oct 11, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello everyone


I am currently utilizing a 'master' excel sheet to keep track of records that get sent to my team on a daily basis. I am connecting to this master sheet via Power Query to populate another tool to assign 'category' attributes to the records, and using Power Pivot to create reports with this information.

Inside the tool that is connected ton the original 'master' sheet I have a column added that contains a data validation list for the 'category' attributes that get assigned to each record. The problem I am running into, is when I refresh the data source, the added records are not pulling the data validation down to the new records. Here is a small screenshot;

1665529408887.png


I would like column AL (Schematic Category in the table) to carry down the validation rules from the cells above it automatically.


Can anyone point me in the right direction towards a VBA code to use here?


Thank you!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,214,646
Messages
6,120,715
Members
448,985
Latest member
chocbudda

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