Worksheet name

P

Patol

Hi! can anyone tell me how to make the worksheet tab name equals to a
certain cell content, please?
Thanks!
 
M

Mark

Try this:

Sub AutoNameSheet()

Application.ActiveSheet.Name = Application.ActiveCell

End Sub

just select the cell that has the name you want your sheet to have and
then run this macro.
 
M

Mark

Try this:

Sub AutoNameSheet()

Application.ActiveSheet.Name = Application.ActiveCell

End Sub

just select the cell that has the name you want your sheet to have and
then run this macro.
 

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