Why Application.get_Caller(Type.Missing) returns a negative integer?
问题 There's something weird about get_Caller(Type.Missing) method. It returns a negative integer, -2146826265 , instead of the Range object as it should. Has anyone come across this issue before? Why is that and how should I solve it? Thanks. Excel.Range range = (Excel.Range) application.get_Caller(System.Type.Missing); The above code would fail if I try to explicitly user type Excel.Range . The error message says, 'Cannot convert type 'int' to 'Microsoft.Office.Interop.Excel.Range'. EDIT: The