声明全局变量可以在文档任何位置(For循环、If判断内除外)。比如:Option ExplicitPublic a As StringSub aa()a = "public"MsgBox aEnd Sub以上代码可执行。Option ExplicitPublic a As StringSub aa()a = "public"MsgBox aDim i As SingleFor i = 1 To 6Public b As Singleb = iMsgBox bNextEnd Sub以上...