Hi David,
I dont kow but your cod is not working for some reason. What have is a
workbok called test that has 3default sheets (sheet1, sheet2, sheet3). Now
what I want to be able to do is the following. If I am in sheet1 I want to
list the sheet name in lets say cell b2. I I go to sheet2 I will have your
cde there 2 but this time I want cell b2 on sheet2 to say sheet2 etc.
Basically depending on what sheet I am in, all sheets will have your code
there to start with, so that I can use the sheet name in some of my
spreadsheet.
Hope I made myself clear, sorry for the confusion.
Thx Les
David Biddulph said:
Sorry, that should have been
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)
--
David Biddulph
David Biddulph said:
A non-VBA way of grabbing the sheet name is
=MID(CELL("filename"),FIND("]",CELL("filename"))+1,255)
--
David Biddulph
Les said:
Hi,
Is there an easy way fro me to grab the name of the active sheet I am in.
ie
if I am in sheet9 I want to be able to use the name sheet9 in code etc?
Thanks in advane,
Les