Consulting

Results 1 to 14 of 14

Thread: Create a production schedule from a different workbook using cell values.

  1. #1

    Create a production schedule from a different workbook using cell values.

    Hi all,
    I'm after a bit of help writing some code to create a new workbook (production sheet) based on cell values (dates) in an different workbook (WIP)

    What i require is the code to look at a column AO and see if any of the values (dates) in that column are in the current working week, it will then copy the information from WIP to Production Sheet and input the information into the a cell based on the value (date). it will also have to take into account the number of hours allowed (column BI). a working day is based on 16 hours so it will have to deduct 5 hours from 16 which will leave it with 11 hours for the day. if there are not enough hours in the day it will go to the next available day.

    I have created a workbook with an example all all this information already inputted.

    Just hope someone could help me with the code.

    Thanks
    ND.

    Book1.xlsx

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    If Year(A) = Year(B) And Week(A) = Week(B), Then 'All the Days in the week DateA are in the same week as DateB.
    If your schedule is never 51 weeks behind, you don't need the Year check
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  3. #3
    SamT,

    i'm not sure how this would work? could you explain in a bit more detail please?

  4. #4
    Just bumping this back up the list for any help if possible?

  5. #5
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    could you explain in a bit more detail please?
    Need more detail about your Workbook(s) layout
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  6. #6
    SamT,
    I have a date value for "electrical test" which is in column AO, i want to use the date (if it is in the current week) from that range and paste the "job number - title" to the production sheet. on the production sheet the date value is in row 1. i have attached my work book so you can see what i'm trying to achieve.
    Attached Files Attached Files

  7. #7
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    I can't open either of your attachments. I use Excel XP, but I can read almost all versions. Try saving your file as an *xls(2003) file, then uploading it.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  8. #8
    SamT

    Please see the attached saved in 2003
    Attached Files Attached Files

  9. #9
    Just bumping this back up the list for any help if possible?

  10. #10
    Just bumping this back up the list for any help if possible?

  11. #11
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    No more bumps, please. Most of our real experts have seen this thread.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  12. #12
    That's fine, if it cant be done then i will mark it as solved and leave it.

  13. #13
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Sorry
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  14. #14
    No problem, I'll mark as solved.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •