經安全檢測,此網站為安全網站,請放心前往原始網址!

How to Stop a Loop in VBA | eHow

Use an "Exit" statement in your VBA loop. Here is an example of the "Exit" statement being used in a "For" loop. Dim indexA, indexB For indexA = 1 to 2 For indexB = 1 to 100 If indexB > 5 Then Exit For End If document.write (indexB & " ") Next Next

www.ehow.com

網址安全性掃描由 google 提供