View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default AUTOMATICALLY NAME A FIELD WITH THE TAB NAME in excel

John

There is a problem associated with your formula.

Use this instead.

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

To see the reason for adding the cell reference see Bob Phillips's site.

http://www.xldynamic.com/source/xld.xlFAQ0002.html


Gord Dibben MS Excel MVP


On Mon, 29 Oct 2007 15:25:00 -0700, John Bundy (remove)
wrote:

After saving the workbook

=RIGHT(CELL("filename"),(LEN(CELL("filename"))-FIND("]",CELL("filename"))))