Data Validation List or Combo Box or...?

VBA_Newbie

Active Member
Joined
Jan 7, 2005
Messages
258
Hi folks,

I have a macro which generates a list of unique price points. Each time the macro runs it could generate any number of unique price points - from as low as 10 all the way up to 500 or more. What I'm trying to do is create a drop down box in cell that automatically fills with these unique price points.

Ideally, the user would select a particular unique price point that has been generated by the macro and I'll set up some form of Vlookup formula to show some relevant information about that particular price point.

Any tips or strategies you could offer me? I think data validation lists have a limit on the number of items you can place in them...as well...the range would always change (and is located on another worksheet).

Many thanks,
Mike
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Mike

How and where does this code create the list of unique items?
 
Upvote 0
Hi Norie,

The macro is not something I wrote (it's way beyond me), I'm just modifying it. It creates the unique price values in column O on sheet called 'Data'. In columns P and Q are other values associated with the price value in column O. This sheet is a hidden from the user as they should not be able to mess with it.

On another sheet I want the user to be able to select any of the unique price points that have been generated and I will do some sort of Vlookup to show the other values associated with that particular price point --those values will in turn be put into graph (easy stuff).

I just need them to be able to select from a list of all unique values in column O on the data worksheet.

Thanks,
Mike
 
Upvote 0
Mike

Well I can think of 2 options.

1 Create a dynamic named range based on column O, which can then be used in data validation or for a combobox. Try a board search for more info.

2 Create code that populates a combobox with unique values, this could be based on the existing code and might actually allow you to eliminate the need to store the unique values anywhere.
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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