WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Workbook Name in Cell

 
   Home -> Office -> Worksheet Functions RSS
Next:  Clearing Cell Contents / Worksheet_Change Event  
Author Message
RoadKill

External


Since: Feb 22, 2008
Posts: 40



(Msg. 1) Posted: Thu Sep 04, 2008 5:28 pm
Post subject: Workbook Name in Cell
Archived from groups: microsoft>public>excel>worksheet>functions (more info?)

I found that you can do a sheet name to display in a cell, but can you do the
same with the workbook name?

For example, if the workbook is named Jabroni Johnson.xls then cell A1 of
Sheet1 in that workbook should also display Jabroni Johnson.

Thank you
Back to top
Login to vote
Max

External


Since: Mar 17, 2004
Posts: 2537



(Msg. 2) Posted: Thu Sep 04, 2008 5:59 pm
Post subject: Re: Workbook Name in Cell [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

With the book saved beforehand
In any cell, in any sheet:
=TRIM(SUBSTITUTE(MID(CELL("filename",A1),FIND("[",CELL("filename",A1),1)+1,FIND("]",CELL("filename",A1),1)-FIND("[",CELL("filename",A1),1)-1),".xls",""))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700 Files:359 Subscribers:55
xdemechanik
---
"RoadKill" wrote:
> I found that you can do a sheet name to display in a cell, but can you do the
> same with the workbook name?
>
> For example, if the workbook is named Jabroni Johnson.xls then cell A1 of
> Sheet1 in that workbook should also display Jabroni Johnson.
Back to top
Login to vote
StpNs

External


Since: Jul 12, 2008
Posts: 3



(Msg. 3) Posted: Thu Sep 04, 2008 6:26 pm
Post subject: RE: Workbook Name in Cell [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Try this,

=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("filename",A1))-FIND("[",CELL("filename",A1))-5)
--
StpNs


"RoadKill" wrote:

> I found that you can do a sheet name to display in a cell, but can you do the
> same with the workbook name?
>
> For example, if the workbook is named Jabroni Johnson.xls then cell A1 of
> Sheet1 in that workbook should also display Jabroni Johnson.
>
> Thank you
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Worksheet Functions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET