WORKSHEETNAME

WORKSHEETNAME()
Returns the name of the worksheet in a given position.

referenceOptional, a cell on the sheet that you want to get the name from
If omitted the name of the current sheet is returned.

REMARKS
??

 A
1??

'iSheetNo - The number of the worksheet you want the name of.

Public Function WORKSHEETNAME(Optional ByVal iSheetNo As Integer = -1) As String

   If iSheetNo = -1 Then
      WORKSHEETNAME = Application.ActiveSheet.Name
   Else
      WORKSHEETNAME = Application.Sheets(iSheetNo).Name
   End If

End Function

You can use the following formula

=MID(CELL("filename",A1)), FIND("]",CELL("filename",A!)) + 1, 1000) 

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,99



© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext