Drop down list - display text vs actual value?

  • Thread starter Thread starter java5354
  • Start date Start date
J

java5354

Hi,
I'm new to VBA. I previously use Data/Validation to set up a drop-down
list for one of the cells. For example, I would go to Data/Validation
and choose List under "Allow" and specified "H,M,L" under "Source".

I need the cell to have a value of H, M, or L but our user would like
to see the drop down list as:
H - HIGH
M - MEDIUM
L - LOW

My question is how can I accomplish this in VBA macro or if anyone can
suggest a better way to do this.
Thanks.
 
There's a sample workbook on my web site that shows a product name and
code in the Data Validation dropdown list. After an item is selected,
the cell shows only the product name. You could adapt this to your
workbook.

On the following page:

http://www.contextures.com/excelfiles.html

Under Data Validation, look for "Data Validation Columns"
 
or a combobox from the forms toolbar which shows low med high,another cell
uses =choose(cell link,"L","M","H")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top