Excel VBA编程的常用代码用过VB的人都应该知道如何声明变量在VBA中声明变量和VB中是完全一样的使用Dim语句Dim a as integer 声明a为整型变量Dim a 声明a为变体变量Dim a as string 声明a为字符串变量Dim a as currency b as currency c as currency 声明abc为货币变量......声明变量可以是:Byte