Conditionnal formating in VBA

stoure

New Member
Joined
Dec 23, 2016
Messages
26
Hi!
I've a conditionnal formatting formula in EXCEL, I'd like to use macro to do so. Thanks.
Code:
=SOMMEPROD(($C$5>=INDIRECT("Leave[departure]"))*($C$5<=INDIRECT("Leave[return]"))*($B8=INDIRECT("Leave[workers]")))
applied on
Code:
=$C$8:$G$14
I'd like to do it on the table below with colour... Thanks

Monday 01
Tuesday 02
Wednesday 03
Thursday04
Friday 05
Saturday 06
Sanday 07
start
0006131820000613182000061318200006131820000613182000061318200006131820
end
0613182000061318200006131820000613182000061318200006131820000613182000
agent1X X X XX X X XX
agent2 X XX X X XX X X X
agent3 X X XX X X XX X
agent4 x XX X X XX X X X
X X XX X X XX X
Semaine du 08/01 au 14/01 2018
lundi 08mardi 09mercredi 10jeudi 11vendredi 12samedi 13dimanche 14
debut0006131820000613182000061318200006131820000613182000061318200006131820
fin0613182000061318200006131820000613182000061318200006131820000613182000
agent1
agent2
agent3
agent4

<colgroup><col><col span="13"><col><col><col span="20"></colgroup><tbody>
</tbody>
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,214,520
Messages
6,120,007
Members
448,935
Latest member
ijat

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