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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to rename an excel worksheet

Status
Not open for further replies.

SkyHigh

Technical User
May 30, 2002
309
CA
Hi Folks
I am trying to rename an excel worksheet and get this runtime error '438' "Object doesn't support this property or method "

ExcelSheet("week").Name = "week" & vCurrWeekNumber

Is there another way I can use to do rename a worksheet.

Thanks much !
Brenda
 
Have you tried this?

dim strName as string
strName = "week" & vCurrWeekNumber
ExcelSheet("week").Select
Sheets("week").Name = strName

W.

 
Hi SkyHigh,

What is [purple]ExcelSheet[/purple]?

If it is your sheet object, then you probably want to use just [blue]ExcelSheet.Name[/blue].

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top