Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Howdie,
Basic VBA for renaming a sheet with value in cell e1 is: ActiveSheet.Name = Range("e1").Value Two sitns I want to: a) rename sheet with say e1 and f1, and for a different sheet b) rename sheet with e1 and the word test any ideas..? Thanks D *** Sent via Developersdex http://www.developersdex.com *** |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Darin, try this,
ActiveSheet.Name = Sheets("Sheet2").Range("E1") & _ Sheets("Sheet2").Range("F1") ActiveSheet.Name = Sheets("Sheet2").Range("E1") & " test" -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 2002 & 2003 "Darin Kramer" wrote in message ... Howdie, Basic VBA for renaming a sheet with value in cell e1 is: ActiveSheet.Name = Range("e1").Value Two sitns I want to: a) rename sheet with say e1 and f1, and for a different sheet b) rename sheet with e1 and the word test any ideas..? Thanks D *** Sent via Developersdex http://www.developersdex.com *** |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ActiveSheet.Name = Range("e1").Value & Range("F1").Value
ActiveSheet.Name = Range("e1").Value & "test" -- HTH Bob Phillips "Darin Kramer" wrote in message ... Howdie, Basic VBA for renaming a sheet with value in cell e1 is: ActiveSheet.Name = Range("e1").Value Two sitns I want to: a) rename sheet with say e1 and f1, and for a different sheet b) rename sheet with e1 and the word test any ideas..? Thanks D *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Prefix .xls] after renaming a sheet? | Excel Discussion (Misc queries) | |||
Sheet renaming and use as data | Excel Discussion (Misc queries) | |||
Renaming a sheet | Excel Discussion (Misc queries) | |||
Naming & renaming a sheet tab | Excel Worksheet Functions | |||
renaming the active sheet | Excel Programming |