Suppose our active sheet is named "MySheet" in the file C:\Files\MyBook.Xls.<br><br>To return the file name without the path, use <br><br>=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",<br>CELL("filename",A1))-FIND("[",CELL("filename",A1))-1)<br><br>This will return "MyBook.xls"<br><br>To return the file name with the path, use either<br><br>=LEFT(CELL("filename",A1),FIND("]",CELL("filename",A1))) Or <br><br>=SUBSTITUTE(SUBSTITUTE(LEFT(CELL("filename",A1),FIND("]",<br>CELL("filename",A1))),"[",""

,"]",""

<br><br>The first syntax will return "C:\Files\[MyBook.xls]"<br><br>The second syntax will return "C:\Files\MyBook.xls"<br><br>In all of the examples above, the A1 argument to the =CELL function forces Excel to get the sheet name from the sheet containing the formula. Without it, and Excel calculates the =CELL function when another sheet is active, the cell would contain the name of the active sheet, not the sheet actually containing the formula.<br><br>I don't take credit for this. I got it from <A HREF="
TARGET="_new">