How do I Stop Do Loop.......


Posted by Armando on October 26, 2001 7:47 AM

I am actually working on this in Word, but I have not found a good Word Site that could help me.

I am doing a Do...Loop macro and I want it to stop when it reaches the end of the page and then go down to the next page and resume.

If someone can help, Thank you or if you can refer me to a Good Word Message Board. Thanks

Posted by Juan Pablo on October 26, 2001 8:02 AM

Use Exit Do (NT)

Posted by Armando on October 26, 2001 8:19 AM

? Exit Do (NT)

I did the following

Do
Exit Do (NT)
Loop

and it gave me an message" Compile error: expected end of statement"

Thank you for the help, I want it to stop when it reaches the end of the page in the word document.



Posted by Juan Pablo on October 26, 2001 8:28 AM

Re: ? Exit Do (NT)

I'm not familiar with Word WB, but what i suggested is that you use the

Exit Do

instruction when you meet that condition

Juan Pablo