Thanks Govert
Jerome
****************************************************************************************************************************
[ExcelFunction(IsMacroType=true, Description = "Returns calling cell
reference", Category = "GoLib")]
public static string CallingCellReference()
{
ExcelReference reference =
(ExcelReference)XlCall.Excel(XlCall.xlfCaller);
string cellReference =
(string)XlCall.Excel(XlCall.xlfAddress, 1+reference.RowFirst,
1+reference.ColumnFirst);
string sheetName = (string)XlCall.Excel(XlCall.xlSheetNm,
reference);
cellReference = sheetName + cellReference;
return cellReference;
}
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To post to this group, send email to exce...@googlegroups.com.
Visit this group at https://groups.google.com/group/exceldna.
For more options, visit https://groups.google.com/d/optout.