Results 1 to 4 of 4

Thread: [RESOLVED] Help with code to select multiple random entries from spreadsheet...

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2009
    Posts
    7

    Resolved [RESOLVED] Help with code to select multiple random entries from spreadsheet...

    Hi,

    I have a spreadsheet with details of the weights of 120 items. I have to try and find a way of allocating the items to delivery trucks which can carry a certain maximum weight, and minimise the number of delivery trucks needed.

    Can anyway suggest a good starting point or method I could use? I'm fairly new to vb and don't know where to start. Any help would be appreciated.

    Sarah x

  2. #2
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    367

    Re: Help with code to select multiple random entries from spreadsheet...

    Do the delivery trucks all have the same maximum weight that they can carry or do they vary from truck to truck?

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2009
    Posts
    7

    Re: Help with code to select multiple random entries from spreadsheet...

    They all have the same maximum weight of 1500kgs.

    xx

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Help with code to select multiple random entries from spreadsheet...

    do all the delivery trucks go to the same destination?
    is the order 120 items, or mulitples the items?
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

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



Click Here to Expand Forum to Full Width