I would like to represent the following function in SpreadsheetGear
public static string GetAddress( IRange range )
{
return range.GetAddress( true, true, ReferenceStyle.A1, true, null );
}
Where I can use this in an Excel file where a cell has a formula of one of the following:
- =GetAddress(A2),
- =GetAddress(A2:B3), or
- =GetAddress(NamedRange)
But I can't figure out how to get a 'IRange reference' from the IArguments parameter of a custom function.
Thanks in advance.