我想包含在一个单元格中公式的结果,但我总是返回0,而不是真正的结果。
我有以下几点:
Set c = .Cells (5,5)
MsgBox (c.Formula) ' this return the following: = ASIN (W22-V22/$D$7)*180/PI()
MsgBox (c.Value) ' this returns 0
MsgBox (c.Value2) ' this returns 0 as well
即使我尝试评估:
evaluation = Application.Evaluate (c.Formula)
MsgBox (c.Value) ' it still returns 0