Variables that you declare within a Sub or Function are valid only inside this Sub or Function. These variables override global variables with the same name and local variables with the same name coming from superordinate Subs or Functions.
在子程序或函数中声明的变量仅在该子程序或函数中有效。这些变量会覆盖同名的全局变量和上级子程序或函数中同名的局部变量。