G
Gunnar
When I try to use a UDF I get a #NAME error.
The function I tried with is:
Function SHEETOFFSET(offset, Ref)
' Returns cell contents at Ref, in sheet offset
Application.Volatile
With Application.Caller.Parent
SHEETOFFSET = .Parent.Sheets(.Index + offset) _
.Range(Ref.Address).Value
End With
End Function
When I enter =SHEETOFFSET(1,A1) in any cell, it displays #NAME
I have since found this happens with all Functions.
What am I doing wrong? Or not doing what I should?
** Posted via: http://www.ozgrid.com
Excel Templates, Training, Add-ins & Business Software Galore!
Free Excel Forum http://www.ozgrid.com/forum ***
The function I tried with is:
Function SHEETOFFSET(offset, Ref)
' Returns cell contents at Ref, in sheet offset
Application.Volatile
With Application.Caller.Parent
SHEETOFFSET = .Parent.Sheets(.Index + offset) _
.Range(Ref.Address).Value
End With
End Function
When I enter =SHEETOFFSET(1,A1) in any cell, it displays #NAME
I have since found this happens with all Functions.
What am I doing wrong? Or not doing what I should?
** Posted via: http://www.ozgrid.com
Excel Templates, Training, Add-ins & Business Software Galore!
Free Excel Forum http://www.ozgrid.com/forum ***