I would like to create an user-defined function in Excel that can return the current worksheet. I could use the
user-defined
Excel
sheetname = Activ
Function MySheet() ' uncomment the below line to make it Volatile 'Application.Volatile MySheet = Application.Caller.Worksheet.Name End Function
This should be the function you are looking for