Tabname function

Joined
Jun 30, 2015
Messages
1
Reaction score
0
I created a simple function as follows:

Public Function TabName() as string

TabName = ActiveSheet.Name

End Function


This works as I would expect, except it doesn't update when the worksheet tab name is changed - the only way to get it to update is to enter-then-exit edit-mode in the cell containing =TabName()

Can anyone explain why this is, and what I can do to make it more dynamic?

Thanks
 

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

Top