Leave Schedule - Excel VBA

YantiPrima

New Member
Joined
Apr 17, 2018
Messages
5
Hello,

I need some help to make a leave schedule plan based on the date an employee is joining.
Employee name = column C
Joining date = column D
Data start in row # 3
Column D to column BDJ is date, starting from Jan 1, 2018 to Dec 31, 2021

Below the conditions:
Employee entitle for rotation off if employee has been working for 70 days
Employee get rotation off for 14 days

What I need:
Based on cell value on column D, joining date
1. 70 days after joining date, the column will be colored with red background
2. The red background color will be 14 days or equal to 14 columns referring from the first day of employee's leave,
3. It should be repeated to another columns based on conditions 1 & 2 above

Example:
If an employee is joining on Feb 2, 2018 (column D) then
after 70 days working, until Apr 12, 2018
Employee will get 14 days leave, starting from Apr 13, 2018 until April 26, 2018
The color on that row, along 14 days or 14 columns will colored in red background
And will be continue until Dec 31, 2021 at column BDJ

To me, it is really impossible to write the code, but I do believe this forum having an arsenal code that could help me.

Best regards,
PrimaSatria
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,215,067
Messages
6,122,949
Members
449,095
Latest member
nmaske

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