This could be done with code either by button, or an automated event, but I
am confused as to how this will work. Will it just name the active sheet or
do all your workbooks open with a single sheet? Bearing in mind a sheet
name must be unique
--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England www.nickhodge.co.uk
(e-mail address removed)
You could try to rename the first worksheet in the workbook using code like:
Option Explicit
Sub auto_open()
Dim myNewName As String
myNewName = ThisWorkbook.Name
If LCase(Right(myNewName, 4)) = ".xls" Then
myNewName = Left(myNewName, Len(myNewName) - 4)
End If
On Error Resume Next
Worksheets(1).Name = myNewName
If Err.Number <> 0 Then
MsgBox "Worksheet was not renamed!"
Err.Clear
End If
End Sub
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.