
Hi,
Use the below formula for the document name.
=MID(CELL("filename"),SEARCH("[",CELL("filename"))+1, SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1)
Use the below formula for the Sheet name.
=RIGHT(CELL("filename",A1),LEN(CELL("filename",A1))-FIND("]",CELL("filename",A1)))
these formulas should be written inside the respective cells.
Hope this helps
____________
www.flickr.com/photos/psdesigner/
Somu475, if this helps please login to Mark As Answer. | Alert Moderator