List box question

Kentman

Active Member
Joined
Apr 26, 2010
Messages
260
Is it posible to colour a line in a list box based on a setting in a worksheet i.e. if a record is marked as 'complete' in a cell can I colour the entry in the list box green?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
It is possible but requires a fair bit of API code. More trouble than it's worth IMO.
There's a demo for a combobox here on Andy's site which I think could be converted to work with a listbox.
 
Upvote 0
You could consider using the Listview control.
Andy,
I could but I've got all the code done now - it just would have been good to show records that were marked 'complete' - I'll definately look at this but I'm on a deadline so don't want to do anything that might stuff it up!

Thank you (and great site BTW) :cool:
 
Upvote 0
Depending on what you already have set up you could use a multi column listbox, where a column is used to store record status.

glad you like the site :)
 
Upvote 0

Forum statistics

Threads
1,214,632
Messages
6,120,655
Members
448,975
Latest member
sweeberry

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top