Newbie question re:userforms

smacktalk

New Member
Joined
Nov 11, 2009
Messages
5
I'm very new to Excel VBA and creating forms, does anyone have an example of something similar, or perhaps point me toward a tutorial?

I need some help creating a form that will do the following:

ask how many people? 3

what are their names?

person 1: john

person 2: paul

person 3: george

how many apples will they consume?

john: 96

paul: 192

george: 10

The apple containers can hold 48 apples each. I need the output redirected to a text file that will assign each apple to a specific place in the containers from largest amount to smallest such that:

pauls' apples will take up the first block of container spaces: 1/1 thru 4/48
johns' apples will take up the next block of container spaces 5/1 thru 6/48
georges' apples will take up the last block of container spaces 7/1 thru 7/10

:rolleyes: thank you!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,222,828
Messages
6,168,484
Members
452,193
Latest member
Arlochorim

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