Change cell color if it´s a weekend day

abermann

New Member
Joined
Apr 28, 2012
Messages
3
Hi there,
I´m developing an Excel sheet. After the user input a date in B6, all cells down to B90 are filled automatically with the right date.

What I need now is to change the row background color as long as that row belongs to a "B" cell that is a holiday (Saturday or Sunday), and I need to do it through VBA because this excel file will be handled by non technical people, so the whole process must be very easy to accomplish (I know how to perform this through CF using weekday, but that won´t do it for the reason I just wrote... it must be easier than that).

Thanks in advance!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
You could set the conditional formatting using VBA.

Mind you I can't see why you couldn't apply the CF to the range manually.
 
Upvote 0
Thanks for your answer, Norie,

I wonder the same, but they told me that users of this excel sheet may not being able to figure out how to apply a CF to the data, so... I have no option, but to make the process as transparent for the user as I can. The problem is I have almost no experience with VBA.
 
Upvote 0
users of this excel sheet may not being able to figure out how to apply a CF
They don't need to do anything to apply the CF, you do that. Apply your conditional formatting to B6 then use the format painter on the range up to B90. Job done. They don't touch the CF after that.
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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