摘要: 在VBA中,用关键字Dim定义变量时,定义语句格式为:Dim 变量名 [As 类型]如Dim Number As Single Dim K As Integer Dim Count As Integer,Address As Single Dim Number As Single,Count As Single其中,[As 类型]为可选项,该部分省略时,所建立的变量类型默认为变体类型,即Variant类型。 如Dim Number ,Count As Single表示Number为Variant数据类型,而Count为Single数据类型。当然,上述定义语句也可简化,即可用类型说明符直... 阅读全文
posted @ 2012-09-03 14:25 正月龙 阅读(2899) 评论(0) 推荐(0) 编辑
留言板