Excel 2007: keep cell style as definied from data validation sheet cells -


in excel, how do keep cell style in column data validation list sheet?

i have sheet list of choices, each choice being cell it's own style (different background color each). in sheet user input values, how can cell gets same style option being chosen validation data?

example: list name "mylist"

  • sheet "lists" have "mylist" cell range of 3, each value , style background color. ("item 1" has red background, item 2 has yellow background, etc.)
  • sheet "data" have column data validation of "mylist", when select 1 of option, cell keep it's default style.

i want cell in "data" sheet have same style cell "mylist" when selecting choice in data validation list.

thanks

as far know, there no automated way have data validation works wish, meaningly, copy format of list source.

you can either :

  • create conditional formating conditions depending on values of list (but you'll have update them in conditional format menu)
  • create vba code using event worksheet_change , compare value of target value of range("mylist") , copy format

you can find example in this thread.

tell if need more tips or info,

regards,

max


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -