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 / Worksheet Functions / May 2008

Tip: Looking for answers? Try searching our database.

Function to insert current filename into worksheet?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ginko - 07 May 2008 10:58 GMT
Hi

I'd like to know if there is a function that I can use to put the current
fileame into a cell in my worksheet?

Thanks
Learn-more - 07 May 2008 11:24 GMT
I just learnt this from other helpful people in this Discussion Group. It
will return the latest worksheet name to you, if change "]" to "[" and 1 to
0, then will give you file name and sheet name. See what you wants it and do
a little modification.

=MID(CELL("filename"),FIND("]",CELL("filename"))+1,255)

This is a link they refer to, have a look/
http://www.xldynamic.com/source/xld.xlFAQ0002.html

Hope it helps.

> Hi
>  
> I'd like to know if there is a function that I can use to put the current
> fileame into a cell in my worksheet?
>
> Thanks
Dave Peterson - 07 May 2008 12:32 GMT
And remember that without the range reference:
=CELL("filename",A1)

You'll get the info from worksheet/workbook that is active when excel
recalculates.

Bob goes into more info at the link.

> I just learnt this from other helpful people in this Discussion Group. It
> will return the latest worksheet name to you, if change "]" to "[" and 1 to
[quoted text clipped - 14 lines]
> >
> > Thanks

Signature

Dave Peterson

 
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.