Hello,
I've below two sets of data in different excel sheets
1) Training data - it contains User ID, Training Start date and Training Due date
2) Leave data - it contains User ID, Leave Start date and Leave End date
User can have multiple training which are assigned through out the year and similarly a User can be on leave multiple times in a year.
I need a Vba code which should check a) if a leave falls during Training duration, if yes add back certain number of days in Training due date
b) if Leave duration doesn't fall between Training duration, it should show original Training due date c) there are other conditions as well but i believe if i knew these two I'll able to add other conditions.
Vba code should loop first each training against all the Leave dates and then move to second user.
Let me know if any other information is required.
Thanks in advance!!!
I've below two sets of data in different excel sheets
1) Training data - it contains User ID, Training Start date and Training Due date
2) Leave data - it contains User ID, Leave Start date and Leave End date
User can have multiple training which are assigned through out the year and similarly a User can be on leave multiple times in a year.
I need a Vba code which should check a) if a leave falls during Training duration, if yes add back certain number of days in Training due date
b) if Leave duration doesn't fall between Training duration, it should show original Training due date c) there are other conditions as well but i believe if i knew these two I'll able to add other conditions.
Vba code should loop first each training against all the Leave dates and then move to second user.
Let me know if any other information is required.
Thanks in advance!!!