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

change the sheet name

Status
Not open for further replies.

ram567

Programmer
Dec 28, 2007
123
US
how do i change the sheet name as Accounts

Set xl_sheet_1 = xl_wb.Sheets("Sheet1")
 

thanks! yes the same thing i did it but it is not changing sheet 1 as accounts
 




Ram,

That's EXACTLY what you asked for. Please do some reading in Excel VBA Help!
Code:
xl_wb.Sheets("Sheet1").Name = "Accounts"
[/code


Skip,
[sub]
[glasses]Did you hear what happened when the OO programmer lost his library?...
[b]He's now living in OBJECT poverty![/b][tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top