Conditional formatting across sheets based on cell value

DWB82

New Member
Joined
Jun 4, 2015
Messages
18
Hi All

I am really new to VBA and would like a little help with a challenge that I am facing.

I would like to apply a conditional format to a number of cells based on Sheet 2 based on the cells values on sheet 1.

For example if

Sheet 1 cell B2= "1" then I would like to colour the interior of cells "D5:E5" on sheet2 blue (colour index for this is 12611584 if it is needed).

Sheet 1 contains the data for an agents attendance 1=Out Of Office 0= In the office, this is then sorted by agent by date
Sheet 2 contains open and booked appointments for an agent in a similar format; the Idea is that if an agent is marked as out of the office then the day on sheet 2 is formatted to highlight this. If this could be attached to a button also that would be even better

If any one could help me with this it would be great!

Thanks in advance for any help that can be offered​
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,214,583
Messages
6,120,378
Members
448,955
Latest member
BatCoder

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