Function that returns worksheet name and updates on rename.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have built a function that reads the name of a worksheet and displays it in
the cell. Once you rename the worksheet, however, the function does not
update. Does anyone know how to invoke the updating of this function when
the event of renaming the sheet occurs? Also, I would like to use this same
function on many different worksheets so it can't look update the functions
on all sheets with the name of the one activesheet.

Thanks,
joe
 
Public Function wname()
Application.Volatile
wname = Application.Caller.Parent.Name
End Function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top