Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2004

Tip: Looking for answers? Try searching our database.

UDF showing full Path of Worksheet or Worksheet Name?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PDX - 13 Apr 2004 20:37 GMT
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....
Frank Kabel - 13 Apr 2004 22:44 GMT
Hi
try something like (if Ref is the range)

ref.parent.name
for the worksheetname

and
ref.parent.parent.fullname

Signature

Regards
Frank Kabel
Frankfurt, Germany

> How can I modify Wallenbachs UDF to show the "Worksheet
> Name" of the referenced worksheet and or the fullpath?
[quoted text clipped - 9 lines]
>
> Thanks....
JE McGimpsey - 13 Apr 2004 22:44 GMT
One way to modify John WalKenbach's UDF:

Name:

   SHEETOFFSETNAME = .Parent.Sheets(.Index + offset).Name

or

Full path and sheet name:

   SHEETOFFSETNAME = .Parent.Fullname & "."  & _
           .Parent.Sheets(.Index + offset).Name

> How can I modify Wallenbachs UDF to show the "Worksheet
> Name" of the referenced worksheet and or the fullpath?
[quoted text clipped - 9 lines]
>
> Thanks....
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.