Staff Allocation - User form VBA codes to avoid double booked

hsolanki

Board Regular
Joined
Jan 16, 2020
Messages
204
Office Version
  1. 2010
Platform
  1. Windows
Hi everyone

i really need an expert help with my intention if if any can help me get the right vba coding.

i am not an expert on VBA codes and i have learnt from videos such as youtube and also from PClearning from which i have created same a Staff Allocator data sheet

basically i want an coding with existing coding that helps allocate staff on the job as per queing system and once "Booked" on the Job cannot book him again on Job and can only book once you make them "available" for example;

if John, Steve, Bates, Cain, Clarke and Bowers are the staff for the day will all be "Available" to do a job and once "John" has been allocated a Job then John should NOT be allowed to Book him on a job and if tried to Book him then msgbox should show that John is already allocated on the Job.

once the John complete his Job and comes back to base to be allocated again then he should go in to Que as the last person behind "Bowers" and cannot book him on the job until his turn come up.

i would be really grateful if anybody could potentially help with my intention of similar to my ideas.

also how do i upload a file in here?

i look forward to hear from some of the expert

Thank you all in advance.
 

Attachments

  • User Form to select staff allocate.jpg
    User Form to select staff allocate.jpg
    247.6 KB · Views: 13
  • archive jobs.jpg
    archive jobs.jpg
    158.6 KB · Views: 13
  • Staff Allocation sheet 1.jpg
    Staff Allocation sheet 1.jpg
    179.5 KB · Views: 8
  • staff lists.jpg
    staff lists.jpg
    162.3 KB · Views: 12

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi can anybody write VBA code or similar for my intention projects.

i send you over an my existing project.
 
Upvote 0

Forum statistics

Threads
1,225,123
Messages
6,182,986
Members
453,144
Latest member
Ali Karfarma

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