mdmackillop
02-05-2007, 07:08 AM
Maybe it's just a bad day, but I can't recall a method (other than UDF) to return the sheet name to a cell within it, or more specifically the last 2 characters of the sheet name.
Bob Phillips
02-05-2007, 07:15 AM
The sheet name is
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)
therfore the last 2 chars are
=RIGHT(MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255),2)
remember this only works on workbooks that have been saved.
mdmackillop
02-05-2007, 07:42 AM
Thanks Bob.
I knew there was a function there somewhere.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.