ListBox - highlight last row if WK** < current WK

colaps

New Member
Joined
Jan 29, 2013
Messages
37
Hello,

Is it possible to keep or create highlighted cells ( last row cells ) if condition met?
Mainly I need to highlight the bottom cells corresponding to each WK number that is smaller than the current WK number.

I have looked if i can read the source of my listbox and keep the formatting that I already have there , but seems it`s not possible, soo now I'm stuck .

this is my listbox :
1612778512107.png


this is the excel file that is used as source for my listbox:
1612778536128.png


Rule of the highlight is : if WK * < current WK , cells highlighted.
This highlight of the prior cells, from last weeks needs to be kept. ( exactly as in the excel file )

I need to have same highlighting as in my excel , on my listbox.
Is this possible ?

p.s. this is the method i address to the source for my listbox:
ListBox1.RowSource = "A1:K50"

Thanks in advance.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

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