sherbetdab
New member
Hi All, new to the forum and been using excel for the past 5 years, only just started learning basic vba coding which helps me speed up some of the everyday chores i have to carry out in my job, i've come unstuck trying to speed up one of the most time consuming tasks, I have a rota for 38 regular drivers and 29 relief drivers. At the moment i have to allocate duties to the relief drivers to cover days off, holidays, sickness etc of the regular drivers, this is based on their knowledge of the 38 routes that operate.I would love to automate the process by writing some code and in doing so save my self many hours work per week.
I'll be totally honest and say i don't know where to start, I'm guessing i have to run sort of loop for each day, when it finds a text value equalling "Rest" "Sick" "Holiday" it would then go and search for a relief driver who is on duty that day, it would then have to search the route knowledge sheet to see if he knows the route, if not it would mover onto the next relief driver on duty and so on, when it finds a suitable relief driver it would put the journey number next to his name meaning it would miss him on the next loop.
Anyway that's the idea in my head, what i need to know is, is it possible to do this with vba? or is it too complicated and maybe needs some other type of programming?
If it is possible could some of you kindly throw some ideas, hints and tips my way so i can carry out some research and put my idea into practice.
I've attached a sample of my rota in case my explanation is a bit hazy.
Thanks in advance.
I'll be totally honest and say i don't know where to start, I'm guessing i have to run sort of loop for each day, when it finds a text value equalling "Rest" "Sick" "Holiday" it would then go and search for a relief driver who is on duty that day, it would then have to search the route knowledge sheet to see if he knows the route, if not it would mover onto the next relief driver on duty and so on, when it finds a suitable relief driver it would put the journey number next to his name meaning it would miss him on the next loop.
Anyway that's the idea in my head, what i need to know is, is it possible to do this with vba? or is it too complicated and maybe needs some other type of programming?
If it is possible could some of you kindly throw some ideas, hints and tips my way so i can carry out some research and put my idea into practice.
I've attached a sample of my rota in case my explanation is a bit hazy.
Thanks in advance.