0
我知道,有在ErrorHAndler.dna example所示的方法:獲得在定製ExcelDNA異常處理程序調用功能,無需MacroType
private object ErrorHandler(object exceptionObject)
{
ExcelReference caller = (ExcelReference)XlCall.Excel(XlCall.xlfCaller);
// Calling reftext here requires all functions to be marked IsMacroType=true, which is undesirable.
// A better plan would be to build the reference text oneself, using the RowFirst/ColumnFirst info
// Not sure where to find the SheetName then....
string callingName = (string)XlCall.Excel(XlCall.xlfReftext, caller, true);
[...]
}
但有沒有人來確定如何在註釋中所描述的問題可能會得到解決?即有沒有辦法做到這一點沒有設置IsMacroType=true
?