Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I need to write a VBA program to rename a worksheet. The tricky part is that I need it to be renamed to whatever a value is in a particular cell. For example, if cell C7 says "Management" I want the worksheet to be renamed "Management". Is this possible? Any help would be great! Thanks. -Idan |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try this,
activesheet.name =[C7] -- 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 wrote in message oups.com... Hi, I need to write a VBA program to rename a worksheet. The tricky part is that I need it to be renamed to whatever a value is in a particular cell. For example, if cell C7 says "Management" I want the worksheet to be renamed "Management". Is this possible? Any help would be great! Thanks. -Idan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Perfect! Thanks!
Paul B wrote: try this, activesheet.name =[C7] -- 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 wrote in message oups.com... Hi, I need to write a VBA program to rename a worksheet. The tricky part is that I need it to be renamed to whatever a value is in a particular cell. For example, if cell C7 says "Management" I want the worksheet to be renamed "Management". Is this possible? Any help would be great! Thanks. -Idan |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub test()
Worksheets("current_name").Name=Range("c7").Value End Sub wrote in message oups.com... Hi, I need to write a VBA program to rename a worksheet. The tricky part is that I need it to be renamed to whatever a value is in a particular cell. For example, if cell C7 says "Management" I want the worksheet to be renamed "Management". Is this possible? Any help would be great! Thanks. -Idan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Rename Worksheet From Cell Data | Excel Worksheet Functions | |||
rename worksheet based on contents of a cell in different workshee | Excel Discussion (Misc queries) | |||
new worksheet and rename from cell contents macro | Excel Worksheet Functions | |||
Rename a Worksheet on Input of Value in Cell | Excel Worksheet Functions | |||
how do i rename worksheet to equal cell name | Excel Worksheet Functions |