Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
pauldaddyadams
 
Posts: n/a
Default Naming a worksheet help?


HI,

I need someones help, im not sure if it can be done but its worth
asking.

Say for Instance in Cell A1 i have the text ''August2005'' I would like
the worksheet to be named this also. Can this be done?

Paul


--
pauldaddyadams
------------------------------------------------------------------------
pauldaddyadams's Profile: http://www.excelforum.com/member.php...o&userid=22499
View this thread: http://www.excelforum.com/showthread...hreadid=394138

  #2   Report Post  
Max
 
Posts: n/a
Default

Try this worksheet sub from a post by JE:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Not Intersect(Target, Range("A1")) Is Nothing Then
ActiveSheet.Name = Range("A1").Value
End If
End Sub

Steps:
Right-click on a sheet tab Choose "View Code"
Clear the defaults in the white space and paste the code there
Type a text* phrase: "August2005" in A1 (the target cell), press Enter
The sheet tab will be named "August2005"

*If you want "August2005" to be the name appearing on the tab
the contents in the target cell A1 need to be either entered as text,
i.e. preceded by an apostrophe [ ' ], or with A1 pre-formatted as Text

Note that sheetnames cannot be duplicates of existing sheets,
contain 31 characters, nor contain illegal character(s): : \ / ? * [
or ]
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"pauldaddyadams"
<pauldaddyadams.1thoyi_1123578343.0273@excelforu m-nospam.com wrote in
message news:pauldaddyadams.1thoyi_1123578343.0273@excelfo rum-nospam.com...

HI,

I need someones help, im not sure if it can be done but its worth
asking.

Say for Instance in Cell A1 i have the text ''August2005'' I would like
the worksheet to be named this also. Can this be done?

Paul


--
pauldaddyadams
------------------------------------------------------------------------
pauldaddyadams's Profile:

http://www.excelforum.com/member.php...o&userid=22499
View this thread: http://www.excelforum.com/showthread...hreadid=394138



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I automate the naming of worksheet tabs? TJ Excel Discussion (Misc queries) 7 September 8th 05 12:01 AM
Macro to search for and display data in another worksheet Mark H Excel Worksheet Functions 0 June 14th 05 12:40 PM
Search/Match between 2 x separate Worksheets and populate result in third worksheet Alan Bartley Excel Discussion (Misc queries) 1 April 11th 05 05:21 AM
Weekly Transaction Processing Ralph Howarth Excel Worksheet Functions 4 January 19th 05 05:37 AM
Indirect reference from one worksheet to another Bill Sturdevant Excel Worksheet Functions 2 December 17th 04 01:23 PM


All times are GMT +1. The time now is 10:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"