标签:read int 二义性 就会 comm idt exce www. body
全局变量例子 public 变量1 AS Integer Sub LLL() 变量1 = 1111 End Sub 模块级变量例子 DIM 变量1 AS Integer Sub LLL() 变量1 = 1111 End Sub |
模块级变量应该放在本模块的最上端,不是在过程中,下面两句会出错
Dim x As String
x = "user"
如果该模块为标准模块,可以这样试试:
Dim x As String
Sub auto_open() ‘打开工作簿自动运行
x = "user"
End Sub
Sub abc()
MsgBox x
End Sub
标签:read int 二义性 就会 comm idt exce www. body
原文地址:http://www.cnblogs.com/zhubinglong/p/7452338.html