相关疑难解决方法(0)

继续循环

我有以下代码

For x = LBound(arr) To UBound(arr)

    sname = arr(x)  
    If instr(sname, "Configuration item") Then  
        '**(here i want to go to next x in loop and not complete the code below)**  

    '// other code to copy past and do various stuff

Next x  
Run Code Online (Sandbox Code Playgroud)

所以我认为我可以简单地使用该语句Then Next x,但这会给出"no for statement声明"错误.

那么我可以在If instr(sname, "Configuration item") Then它进入x的下一个值之后放入什么呢?

vba loops for-loop next

58
推荐指数
5
解决办法
19万
查看次数

标签 统计

for-loop ×1

loops ×1

next ×1

vba ×1