Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Use workbook name as value
Hi, I am using the name of the workbook as a serial number too. I would like to use a formula, so that the serial # column reflects the new workbook name, every time I open a new workbook using the "save as" function.
regards, seby |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Use workbook name as value
Enter this into a cell to return the filename.
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1),1)+1,FIND("]",CELL("filename",A1),1)-FIND("[",CELL("filename",A1),1)-1) Note: file must have been saved a to least once. Gord Dibben MS Excel MVP On Wed, 15 Oct 2008 08:26:40 +0100, sebyjohn73 wrote: Hi, I am using the name of the workbook as a serial number too. I would like to use a formula, so that the serial # column reflects the new workbook name, every time I open a new workbook using the "save as" function. regards, seby |
#3
|
|||
|
|||
Thank you very much
regards, Seby [quote=Gord Dibben;739378]Enter this into a cell to return the filename. =MID(CELL("filename",A1),FIND("[",CELL("filename",A1),1)+1,FIND("]",CELL("filename",A1),1)-FIND("[",CELL("filename",A1),1)-1) Note: file must have been saved a to least once. Gord Dibben MS Excel MVP |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro to copy an image (or picture) from one workbook to a new sheetin another workbook | Excel Worksheet Functions | |||
Excel-how to link source workbook to copy of destination workbook | Excel Worksheet Functions | |||
Excel workbook is corrupted, workbook automatically saves on start | Excel Discussion (Misc queries) | |||
Select sheet tabs in workbook & save to separate workbook files | Excel Worksheet Functions | |||
Multiple workbook user's with Master workbook - all password protected | Excel Discussion (Misc queries) |