View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
PDX PDX is offline
external usenet poster
 
Posts: 2
Default UDF showing full Path of Worksheet or Worksheet Name?

How can I modify Wallenbachs UDF to show the "Worksheet
Name" of the referenced worksheet and or the fullpath?

Function SHEETOFFSETNAME(offset, Ref)
' Returns cell contents at Ref, in sheet offset
Application.Volatile
With Application.Caller.Parent
SHEETOFFSETNAME = .Parent.Sheets(.Index +
offset).Range(Ref.Address).Value
End With
End Function

Thanks....
..