VBA to select multiple named ranges

petrutms

New Member
Joined
Mar 1, 2021
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
Hi, i have a depended dropdown data validation that works fine, but the issue is that no matter what i do will always show the blank items, since the list is dynamic and contains formulas.
For example, i have 3 categories, Test1,Test2,Test3, each with their own named range, for example rangeTest1,rangeTest2,rangeTest3. The ranges contain filtered values without blanks.

Now, how can i make the code to display for example rangeTest2 if selected category is Test2, or rangeTest3 id selected category is Test3?
I tried offset methods, table methods, none work because all my cells contain formulas and will appear as blank.

Thanks
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,136,954
Messages
5,678,755
Members
419,782
Latest member
gc75150

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
Top