patriot333
New Member
- Joined
- Mar 28, 2009
- Messages
- 3
The following are two examples of a macro that simply end after the loop. They seem to complete the loop properly, but instead of continuing on with the rest of the code it ERRORs out?
I just need it to then go to the "RegCard" sheet then and stop.
Any help would be greatly appreciated. Thank you in advance.
Sub WaterCouponLoop1()
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
ffice
ffice" /><o
></o
>Application.ScreenUpdating = False
Sheets("WaterCoupons").Select
Application.CutCopyMode = False
ActiveWindow.SelectedSheets.PrintOut Copies:=1
Do Until (Data!E2 + 10 > WaterList03!G3)
<o
></o
>Sheets("Data").Select
Range("E2").Select
ActiveCell.Value = 10 + ActiveCell.Value
Sheets("WaterCoupons").Select
Application.CutCopyMode = False
ActiveWindow.SelectedSheets.PrintOut Copies:=1
Loop
Sheets("RegCard").Select
Application.ScreenUpdating = True
<o
></o
>
End Sub
<o
></o
>
<o
></o
>
Sub WaterCouponLoop1()
<o
></o
>Application.ScreenUpdating = False
Sheets("WaterCoupons").Select
Application.CutCopyMode = False
ActiveWindow.SelectedSheets.PrintOut Copies:=1
Do
<o
></o
>Sheets("Data").Select
Range("E2").Select
ActiveCell.Value = 10 + ActiveCell.Value
Sheets("WaterCoupons").Select
Application.CutCopyMode = False
ActiveWindow.SelectedSheets.PrintOut Copies:=1
Loop Until (Data!E2 > WaterList03!G3)
Sheets("RegCard").Select
Application.ScreenUpdating = True
<o
></o
>
End Sub
I just need it to then go to the "RegCard" sheet then and stop.
Any help would be greatly appreciated. Thank you in advance.
Sub WaterCouponLoop1()
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
Sheets("WaterCoupons").Select
Application.CutCopyMode = False
ActiveWindow.SelectedSheets.PrintOut Copies:=1
Do Until (Data!E2 + 10 > WaterList03!G3)
<o
Range("E2").Select
ActiveCell.Value = 10 + ActiveCell.Value
Sheets("WaterCoupons").Select
Application.CutCopyMode = False
ActiveWindow.SelectedSheets.PrintOut Copies:=1
Loop
Sheets("RegCard").Select
Application.ScreenUpdating = True
<o
End Sub
<o
<o
Sub WaterCouponLoop1()
<o
Sheets("WaterCoupons").Select
Application.CutCopyMode = False
ActiveWindow.SelectedSheets.PrintOut Copies:=1
Do
<o
Range("E2").Select
ActiveCell.Value = 10 + ActiveCell.Value
Sheets("WaterCoupons").Select
Application.CutCopyMode = False
ActiveWindow.SelectedSheets.PrintOut Copies:=1
Loop Until (Data!E2 > WaterList03!G3)
Sheets("RegCard").Select
Application.ScreenUpdating = True
<o
End Sub