Work book title

tintin1012000

Board Regular
Joined
Apr 27, 2011
Messages
237
I want to put the title of the work book in cell A1
I have been using =CELL("filename",A1) but this returns
W:\APM\Prodqty\8882\Prod 2011\[8882wk4011.xls]shift reports

Is it possible just to return 40 ??

Thanks
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
As long as the end of the filename won't change length, maybe:
Code:
=MID(CELL("filename",A1),SEARCH(".",CELL("filename",A1))-4,2)
 
Upvote 0
Thanks GTO,

you might be able to help me with second part

I want to retun a cell value from (B7) in sheet1 from the following file on a network
Location is \\IEMAFS001\VOL1\APM\Prodqty\Electronic Shift Book\8882\Line 2\wk40.xls

But I want the new A1 that your code below has sorted to replace the 40 in the above network location eg if I have 50 in A1 then the code will give me
(B7) in sheet1 from file \\IEMAFS001\VOL1\APM\Prodqty\Electronic Shift Book\8882\Line 2\wk50.xls
 
Upvote 0
I am afraid I am not following what you are saying :-(
 
Upvote 0
OK let me try again

I have a file in a server location
\\IEMAFS001\VOL1\APM\Prodqty\Electronic Shift Book\8882\Line 2\wkxx.xls


I want to pull the content of one cell from within the work book location is sheet1 cell A33.

In my open excel sheet I now have 40 in A1 from your code and i want to use this 40 to change the link from \\IEMAFS001\VOL1\APM\Prodqty\Electronic Shift Book\8882\Line 2\wkxx.xls to \\IEMAFS001\VOL1\APM\Prodqty\Electronic Shift Book\8882\Line 2\wk40.xls
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top