用Const声明常量。语法为:
[Public|Private] Const 符号常量名 [As 类型] = 表达式
例如
Private Const MyConst As Integer = 1000Const MyStringConst As String = "Hello" '默认为PrivateConst PI As Double = 3.1415926 '默认为PrivateConst MyVar = 1000 '默认为Private, MyVar的类型为Variant