Vba 对每个对象进行条件迭代

Vba 对每个对象进行条件迭代,vba,ms-word,Vba,Ms Word,嗨,每个循环我都有一个 For each bkmark in bookmarks If conditional statement is true Insert conditional value Next for End if Insert default value Next`` 如何执行下一步操作?此处不需要“下一步”-只需在块中添加Else,如果块: For each bkmark in book

嗨,每个循环我都有一个

For each bkmark in bookmarks
       If conditional statement is true
           Insert conditional value
            Next for
        End if
       Insert default value
Next``
如何执行下一步操作?

此处不需要“下一步”-只需在
块中添加
Else
,如果
块:

For each bkmark in bookmarks
   If conditional statement is true
       Insert conditional value
   Else
       Insert default value
   End if
Next