移动到另一台计算机时包含COUNTIFS的宏,返回0

时间:2013-03-25 11:11:03

标签: excel excel-vba vba

下面是一个示例代码,当我复制到另一台具有相同版本的excel的计算机时,我得到零。

i = Application.WorksheetFunction.CountIfs(.Range(.Cells(2, resolve_date), .Cells(lastrow, resolve_date)), ">=" & date1, _
      .Range(.Cells(2, resolve_date), .Cells(lastrow, resolve_date)), "<=" & date2, .Range(.Cells(2, Planned_release), .Cells(lastrow, Planned_release)), rel)

当我在我编码的计算机上运行时,它会返回非零值(预期),这可能是什么原因?

0 个答案:

没有答案