Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to name an excel seet dynamically based on workbook?

Status
Not open for further replies.

TonyU

Technical User
Feb 14, 2001
1,317
US
[tt]
Can someone help me with code on how to accomplish this ? The name of my workbook is call Monthtly Report (changing monthly to the current month) so, my sheet will read Monthly Report.

[tt]"A Successful man is one who can build
a firm foundation with the bricks
that others throw at him"
[/tt]

star.gif
star.gif
star.gif
star.gif

 

Instead of referencing the sheet by the name, use the index instead and put this code in the workbook open event.

Sheets(1).Name = ThisWorkbook.Name
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top