ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   ListBoxes - Different Elements, different colours. (https://www.excelbanter.com/excel-programming/408281-listboxes-different-elements-different-colours.html)

NateBuckley

ListBoxes - Different Elements, different colours.
 
Greetings I'm just wondering if anyone can help me out with an issue on List
Boxes.

Here is an example

Billy
Timmy
Bob
Shane

These are 4 different elements within the List Box, If Timmy has recieved a
low mark I want the text or simply the background of that element only, to
turn an orange. Is customisation of the elements possible like this?

Thank you in advance.

ryguy7272

ListBoxes - Different Elements, different colours.
 
Take a look at this. Does this do what you want?
http://www.contextures.com/xlCondFormat01.html

As far as I know, you can't apply CF to a ListBox, but someone may be able
to offer you VBA code that would actually do that.

Anyway, hope that helps.

Regards,
Ryan--
--
RyGuy


"NateBuckley" wrote:

Greetings I'm just wondering if anyone can help me out with an issue on List
Boxes.

Here is an example

Billy
Timmy
Bob
Shane

These are 4 different elements within the List Box, If Timmy has recieved a
low mark I want the text or simply the background of that element only, to
turn an orange. Is customisation of the elements possible like this?

Thank you in advance.


Peter T

ListBoxes - Different Elements, different colours.
 
There's nothing built in but Andy Pope shows a way to do it, clever stuff!

http://www.andypope.info/vba/colourdropdown.htm

Regards,
Peter T

"NateBuckley" wrote in message
...
Greetings I'm just wondering if anyone can help me out with an issue on

List
Boxes.

Here is an example

Billy
Timmy
Bob
Shane

These are 4 different elements within the List Box, If Timmy has recieved

a
low mark I want the text or simply the background of that element only, to
turn an orange. Is customisation of the elements possible like this?

Thank you in advance.





All times are GMT +1. The time now is 08:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com