![]() |
Rename active sheet
I was using a macro in exel 2002, and now have exel 2003.
The coding for changing the name of the active sheet (Which was: Active sheet.Select ; ActiveSheet.Name = "sheet1") does not work with my new exel. Has something changed? Thanks |
Rename active sheet
Active sheet.Select
You must use ActiveSheet instead of Active Sheet But if you want to rename the Active sheet then this line is enough ActiveSheet.Name = "sheet1" You can use this to avoid a error if the sheet name already exist On Error Resume Next ActiveSheet.Name = "sheet1" On Error GoTo 0 -- Regards Ron de Bruin (Win XP Pro SP-1 XL2000-2003) www.rondebruin.nl "Ginny" wrote in message om... I was using a macro in exel 2002, and now have exel 2003. The coding for changing the name of the active sheet (Which was: Active sheet.Select ; ActiveSheet.Name = "sheet1") does not work with my new exel. Has something changed? Thanks |
Rename active sheet
all you need is
activesheet.name = "sheet1" exactly as shown -- Don Guillett SalesAid Software "Ginny" wrote in message om... I was using a macro in exel 2002, and now have exel 2003. The coding for changing the name of the active sheet (Which was: Active sheet.Select ; ActiveSheet.Name = "sheet1") does not work with my new exel. Has something changed? Thanks |
All times are GMT +1. The time now is 04:07 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com