J
jan120253
I use this UDF to transfer a sheetname to a cell:
Function Arknavn()
Application.Volatile
Arknavn = ActiveSheet.Name
End Function
Unfortunately as it use ActiveSheet it doesn't do what I want it to, if I have to use it in more that one sheet, and changes name of a sheet as it always display the name of the active sheet, that is, the sheet who's name I'm changing.
I want it to always show the name of the sheet, in wich it is used, even if its used in more sheets than one.
Can this be done, and if so how?
Jan
Function Arknavn()
Application.Volatile
Arknavn = ActiveSheet.Name
End Function
Unfortunately as it use ActiveSheet it doesn't do what I want it to, if I have to use it in more that one sheet, and changes name of a sheet as it always display the name of the active sheet, that is, the sheet who's name I'm changing.
I want it to always show the name of the sheet, in wich it is used, even if its used in more sheets than one.
Can this be done, and if so how?
Jan