One solution is to add the following function in a Visual
Basic module:
Option Explicit
Function Sheetname() As String
Sheetname = ActiveSheet.Name
End Function
Then including "Sheetname()" in a formula will return the
name of the Tab
if the active Tab is "Sheet1"
if A1 contains ="The name of the sheet is "&Sheetname()
A1 will display as: "The name of the sheet is Sheet1"
Caution: If the Tab is changed the cells containing the
formula are not automatically updated !!!!! (because Excel
ignores that the function Sheetname is depending on the
name of the Tab...)
To create a visual basic module:
Tools >Macros >Visual Basic Editor
insert >Module
Copy the code in the module
Close the VB Windows to return to Excel