![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 59
|
Does anyone remember the code in VB (or elsewhere) that will name a sheet with a cell value??
For example if cell A1 says: "Joe", I want the sheet name to be "Joe". I have seen it done, I just don't know how....any help would be appreciated!! Thanks in advance! |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Try with
Code:
Sub SheetName()
ActiveSheet.Name = Range("A1").Text
End Sub
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 59
|
Worked like a champ!!! Thanks!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|