ganeshpoojary05
Board Regular
- Joined
- Apr 26, 2011
- Messages
- 105
hi everyone, i need a help to create a macro.
for example:
i have a leave tracker report where i have 400 employees. so i want to create a macro in which only 23 employees can take a leave on a day, and agent should not excced 21 leaves in a year.
1.if the leave count exceeds 23 than it should prompt with a message "Daily Leave quota exhausted" and it should not allow me enter more leaves.
2. if the leave count exceeds 21 in a year than it should prompt a message as "Agent has exhausted his leave balance"
3.if the above 2 conditions are ok than it should prompt a message as "Leave Validated".
Please note that the Leave calender is for 12 months (365 days).
for example:
i have a leave tracker report where i have 400 employees. so i want to create a macro in which only 23 employees can take a leave on a day, and agent should not excced 21 leaves in a year.
1.if the leave count exceeds 23 than it should prompt with a message "Daily Leave quota exhausted" and it should not allow me enter more leaves.
2. if the leave count exceeds 21 in a year than it should prompt a message as "Agent has exhausted his leave balance"
3.if the above 2 conditions are ok than it should prompt a message as "Leave Validated".
Please note that the Leave calender is for 12 months (365 days).