Hi I just wonder how to change a sheet name the from vba code in excel.. Thanks for your help Jac
J Jack Jun 9, 2004 #1 Hi I just wonder how to change a sheet name the from vba code in excel.. Thanks for your help Jac
R Ron de Bruin Jun 9, 2004 #2 Try this Jack Sub test() On Error Resume Next ActiveSheet.Name = "Hi" On Error GoTo 0 End Sub
B Bob Flanagan Jun 9, 2004 #3 ActiveSheet.Name ="new name" or worksheets("sheet1").Name ="New Name" Bob Flanagan Macro Systems http://www.add-ins.com Productivity add-ins and downloadable books on VB macros for Excel
ActiveSheet.Name ="new name" or worksheets("sheet1").Name ="New Name" Bob Flanagan Macro Systems http://www.add-ins.com Productivity add-ins and downloadable books on VB macros for Excel
H Harald Staff Jun 9, 2004 #4 Hi Jack Adding: When you're stuck on simple operations and their syntax, record a macro while doing it manually: Sub Macro1() ' ' Macro1 Macro ' Macro recorded 09.06.2004 by Harald Staff Sheets("Sheet1").Select Sheets("Sheet1").Name = "Joe" End Sub HTH. Best wishes Harald
Hi Jack Adding: When you're stuck on simple operations and their syntax, record a macro while doing it manually: Sub Macro1() ' ' Macro1 Macro ' Macro recorded 09.06.2004 by Harald Staff Sheets("Sheet1").Select Sheets("Sheet1").Name = "Joe" End Sub HTH. Best wishes Harald