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

下面是一个示例代码,当它被复制到另一台具有相同版本的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) 

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