+ Reply to Thread
Results 1 to 8 of 8

VBA Allocation Tool Help

  1. #1
    Registered User
    Join Date
    08-05-2014
    Location
    Southampton
    MS-Off Ver
    2007
    Posts
    10

    VBA Allocation Tool Help

    Hi All,

    I'm in the middle of creating an allocation tool in which on the "Home Page" has a cell ("L12") for the user to type in how many jobs they want to allocate based on what is available. On another sheet ("Latest Jobs") i have the raw data (A:P) and one row = one job. The first colulmn "Allocated" works out if the job has already been allocated ("Yes" or "No") by looking at another sheet ("Allocation") which is filled with all previous allocated jobs.

    My plan is to allocate jobs (rows) based on what the value in "L12" is on the "Home Page" and if the "Allocated" value is "No" in column "Allocated" on the "Latest Jobs" sheet. For example, if "L12" value is 10 then the Macro would copy the first 10 rows with "Allocated" value as "No" on the "Latest Jobs" sheet and paste them after the last row on the "Allocation" sheet.

    I would appreciate any help you can offer.

    Thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,548

    Re: VBA Allocation Tool Help

    Please see the attached sample workbook.

    Please Login or Register  to view this content.

    Regards, TMS
    Attached Files Attached Files
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-05-2014
    Location
    Southampton
    MS-Off Ver
    2007
    Posts
    10

    Re: VBA Allocation Tool Help

    Thank you that's great, however now what i have been trying to do is to not copy the "Allocated" (A) column on the "Latest Jobs" sheet. So i only want to copy B:P on the "Latest Jobs" sheet and then paste that after the last row on the "Allocation" sheet but starting from column C. This is because i have an extra 2 columns on that sheet.

    I've tried but with no success so far. Any idea?

    Thanks

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,548

    Re: VBA Allocation Tool Help

    OK, harder than I thought, but try this:

    Please Login or Register  to view this content.

    Regards, TMS

  5. #5
    Registered User
    Join Date
    08-05-2014
    Location
    Southampton
    MS-Off Ver
    2007
    Posts
    10

    Re: VBA Allocation Tool Help

    That is perfect, thank you - so above my level unfortunately!!

    One more thing if possible..... I have another cell on the home screen ("L11") which contains "Agent Name" and i want to add this into each of the rows copied over from "Latest Jobs" to "Allocation" and placed in column "B" of each, if that makes sense?

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,548

    Re: VBA Allocation Tool Help

    This is what we used to call "scope creep".

    OK, last time.

    Please Login or Register  to view this content.
    Last edited by TMS; 08-06-2014 at 12:46 PM.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,548

    Re: VBA Allocation Tool Help

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  8. #8
    Registered User
    Join Date
    08-05-2014
    Location
    Southampton
    MS-Off Ver
    2007
    Posts
    10

    Re: VBA Allocation Tool Help

    Sorry i knew the requirements from the start but wanted to see if i could work the rest out myself (I couldn't). Thanks again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Proportional Allocation
    By sammymalta in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-16-2014, 04:33 AM
  2. resource allocation
    By andrugrasu in forum Excel General
    Replies: 0
    Last Post: 02-26-2014, 01:17 PM
  3. Allocation using VBA
    By naveenhs5 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-21-2011, 07:25 AM
  4. I am missing view tool bar from tool menu.
    By excel in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-04-2005, 03:05 PM
  5. F-key allocation
    By HELLBOY787 in forum Excel General
    Replies: 1
    Last Post: 06-30-2005, 07:05 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1