Compile error: For without Next

NewbieVBie

Board Regular
Joined
Jan 30, 2003
Messages
65
i am consistantly getting a Compile error:
saying:

For Without Next.
what does this mean and how can i resolve it?
(the debug highlights the End Sub line of the code)
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
the cell is relative to the name it is associated with (it is three columns to the left of the name)
the DAYREQUESTTB is on a workbook sheet it is entered by the user
 
Upvote 0
yes i do but with a new twist. i select the name of the user and then a message box appears saying "accounts". after clicking ok (the only option) i get a 1004 error.

i dont think this code is going to work for the problem i have is there any other code i could use?
 
Upvote 0
Well at least we have established that we've found the right cell.

So what cell is "accounts" in? And what cell are the DaysRemaining for "accounts" in?
 
Upvote 0
what exactly does this code do? i need it to find the holiday entitlement, holiday remaining, holiday taken from a series columns for each user and then i need to it change the values it finds by the number the user enters in a textbox
will this do that?
and if not what will?
 
Upvote 0

Forum statistics

Threads
1,215,460
Messages
6,124,949
Members
449,198
Latest member
MhammadishaqKhan

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