2012-09-24 75 views

回答

3

VBA中没有类型层次结构,Object用于对象实例,它不能保存原始类型。

使用Long

Dim test As long 
test = Mid(Trim(row.Cells(1, 19).Value), 9, 1) Mod 2 
+1

不妨使用字符串函数'中秋节$',而不是变种'Mid' – brettdj