How do I insert the file name as my Worksheet name in the tab?

D

Dennis

I was wondering how do I automatically instert my file name as my tab name
instead of "Sheet 1" without having to right click and select "rename" and
typing the file name into the tab?
 
G

Gary''s Student

Try this tiny macro:

Sub hdksa()
ActiveSheet.Name = ActiveSheet.Parent.Name
End Sub
 

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