T torben New Member Jan 26, 2012 #1 I would like to format a cell colour based on the value from a combobox. Imagine a drop-down list with colour codes and cells adapting to your choice of colour. Is that possible without scripts? Many thanks!
I would like to format a cell colour based on the value from a combobox. Imagine a drop-down list with colour codes and cells adapting to your choice of colour. Is that possible without scripts? Many thanks!
Hui Excel Ninja Staff member Jan 26, 2012 #2 Torben Firstly, Welcome to the Chandoo.org forums Yes, What you want is possible Add a Combo box Control from the Developer Tab Link it to a list of Colors or other words in a range Link it to an Cell Link cell Select the cells you want to color Goto Conditional formatting (CF) You will need to add a number of entries one for each color Add a CF based on a formula =CellLink = Value1 Set Format Add the last two steps repeatedly for each of your selections in your Combo Box For more about Combo Boxes read here: http://chandoo.org/wp/2011/03/30/form-controls/ For more about Conditional Formatting read here: http://chandoo.org/wp/2009/03/13/excel-conditional-formatting-basics/ http://chandoo.org/wp/2008/03/13/want-to-be-an-excel-conditional-formatting-rock-star-read-this/
Torben Firstly, Welcome to the Chandoo.org forums Yes, What you want is possible Add a Combo box Control from the Developer Tab Link it to a list of Colors or other words in a range Link it to an Cell Link cell Select the cells you want to color Goto Conditional formatting (CF) You will need to add a number of entries one for each color Add a CF based on a formula =CellLink = Value1 Set Format Add the last two steps repeatedly for each of your selections in your Combo Box For more about Combo Boxes read here: http://chandoo.org/wp/2011/03/30/form-controls/ For more about Conditional Formatting read here: http://chandoo.org/wp/2009/03/13/excel-conditional-formatting-basics/ http://chandoo.org/wp/2008/03/13/want-to-be-an-excel-conditional-formatting-rock-star-read-this/