# HW involving For-Next loops, wage doubling, input boxes, message boxes.

#### IllMind

##### New Member
Think you can solve it?

I'm stumped on a homework assignment with VBA. The question goes as follows..

Write a VBA program using For-Next loops to find out how much money you would be paid, if your starting pay was a nickel and your paydoubled every day for a specified number of days. Input the number of days by input box. Output the pay in cents for each day in column “A” and the running total of money earned in dollars for each day in column “B”. If the total pay is more than 1 million dollars display a message box with congratulations to the worker.

Any and all help is greatly appreciated

### Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},\$Z\$1:\$Z\$99,\$Y\$1:\$Y\$99),2,False) to lookup Y values to left of Z values.

#### My Aswer Is This

##### Well-known Member
Mr. Excel discourages us from helping students do their home work.

Now if you would show us how much of the script you already have completed and only need just a little help with one line of code we may try and help you.

Replies
1
Views
534
Replies
2
Views
1K
Replies
1
Views
549
Replies
2
Views
1K

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,152,194
Messages
5,768,778
Members
425,495
Latest member
Ragamacam

### 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.

### Which adblocker are you using?

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

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