Hi Eduardo,
You'd do this in ExcelDna as follows:
Function OffsetDna(<ExcelArgument(AllowReference:=True)> input as
object) as object
If not TypeOf input Is ExcelReference Then
OffsetDna = "!!! Not a reference"
Else
Dim inputRef as ExcelReference = input
Dim outputRef as New ExcelReference( _
input.RowFirst + 1, _
ExcelDnaUtil.ExcelLimits.MaxRows - input.RowFirst - 1, _
input.ColumnFirst, _
input.ColumnLast, _
input.SheetId)
OffsetDna = outputRef.GetValue()
End If
End Function
Note that both the VBA function and the Dna function have the
disadvantage that they are not recomputed automatically when you
update the lower cells in the column - since the contents of the
reference that you send to the function has not changed...
Regards,
Govert