×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

What's the best box?

What's the best box?

What's the best box?

(OP)
Thanks for any help in advance!!

I'm fairly new to using VBA, and hope you guys can help me. I work for a manufacturing facility, and I'm trying to update our estimating spreadsheet by supplying some automated functions.

We use eight different box sizes for packaging our product, all at various costs. I'm trying to supply an input area for the estimator to enter the three dimensions of the part to be packaged, then have the software calculate the total number of pieces than can fit in each box size, then the most cost-effective box to use.

I've managed to get it to work, to a point. My problem is, this is only with the part turned one way from four possible positions within the box. This leaves empty space in the box, in which a few more parts might be packaged (turned in a different direction). It's a bit like packing books. A row fits fine lined vertically along the bottom, but you can always fit two-three across the top horizontally.

Can anyone think of a way to calculate that empty space, and determine how many pieces can fit? Or is there an easier way of doing all this that I've completely missed?

Thanks!!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources