ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I insert the file name as my Worksheet name in the tab? (https://www.excelbanter.com/excel-worksheet-functions/189920-how-do-i-insert-file-name-my-worksheet-name-tab.html)

dennis

How do I insert the file name as my Worksheet name in the tab?
 
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?

Gary''s Student

How do I insert the file name as my Worksheet name in the tab?
 
Try this tiny macro:

Sub hdksa()
ActiveSheet.Name = ActiveSheet.Parent.Name
End Sub
--
Gary''s Student - gsnu200790


"Dennis" wrote:

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?



All times are GMT +1. The time now is 08:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com