Accounting for lead time in VBA (The Bullwhip/Beer Distribution Game)

bwilgus

New Member
Joined
Mar 29, 2014
Messages
9
Hey all, first post, longtime reader.

I am working on creating my own version of the Beer Game (if you have never heard of it, Wikipedia has a good article on it). So far I'm doing well creating it, but I am having a hard time accounting for the two rounds of lead time required for the game rules.

How I have it set up is that each player has their own worksheet (Retailer, Wholesaler, Distributor, Factory). Each screen looks something like this:

11lsi29.png


All the information in white will be provided by the script which should help the user to make a decision on inventory to order, which is yellow.

The data gets stored in the "Data Storage" sheet so that it can be called upon by all of the modules I'm running (which feels like a ton).


Anyways, the main part of the question:

The professor wants us to have the ability to alter the lead time at the beginning of the game: 0 rounds, 1 round, 2 rounds. 0 rounds is pretty easy, but I'm having a hard time making a sub that would allow the game to account for variable lead times.


Hopefully that wasn't too convoluted. Let me know how else I can explain what is going on here.


Brad
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,216,126
Messages
6,129,007
Members
449,480
Latest member
yesitisasport

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