How to make a drop down list as readonly
Hi,
I have created a pull down menu for cell thru a VBA
macro.
Now I want to make that pulldown.....just readonly.
THe user can just see the options but he shouldn't
not be allowed to select any options.
How do I need to do that?
Please help me as soon as possible.
I have used..Selection.validation object.
But please tell me the various other properties
to be set to achieve this
TIA
Pooja
If you're using Excel 97 or later, you can use Data Validation (from the Data menu) to restrict input to items from a list that you define.
You can either type the list values directly into the validation box or specify a range on the worksheet where the list items appear.
This shouldn't have any impact on your existing formulas.
JAF
If I understand your problem, you have for example, a list of fruit, Apple, Orange, Lemon, Lime and Pear in cells A1:A5, Cell B5 has been set with validation from the Tools menu to allow to allow selection from a drop down list, the source of which is A1:A5. You have many formulas, one of which may be in Cell C5 as:
@if(B5="Apple",1,@if(B5="Orange",2,@if(B5="Lemon",3,@if(B5="Lime",4,@if(B5="Pear",5,"No Fruit Today")))))
I have tried the above with success. Selecting from the drop down list in cell B5 has the desired effect on cell C5. If Apple is selected, then 1 is returned.
This being the case, I see no reason for other more useful and complicated formulas not to work.