Vba中For if循环如何在if从句条件正确时主动退出循

2025-03-24 16:09:55
推荐回答(1个)
回答1:

For i=1 to 6
If i=3 Then Exit For

.....
以上代码片段表示:如果i的值为3,则退出for循环。