Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Naming Spreadsheet Tabs

Hi all you Excel gurus out there --

Is there a way to have a spreadsheet tab automatically name itself based on
a cell within the the sheet?

Thanks for your help.

Ellen
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 185
Default Naming Spreadsheet Tabs

Ellen

Only by using code. You could use a Worksheet_Change() event, like so

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

It has no checking if the name has illegal characters though, is too long
etc.

To implement in a sheet right click the tab and select view code. paste it
there and close the VBE, now if you make a change in A1 on that sheet it
will change the name of the sheet tab



--

HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
web:
www.nickhodge.co.uk
blog (non tech): www.nickhodge.co.uk/blog


"Ellen G" wrote in message
...
Hi all you Excel gurus out there --

Is there a way to have a spreadsheet tab automatically name itself based
on
a cell within the the sheet?

Thanks for your help.

Ellen


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Naming Spreadsheet Tabs

you would need a macro to do that either in a worksheet_change event or a
macro
If a date you will have to use an acceptable format.

activesheet.name=range("a1").value

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Ellen G" wrote in message
...
Hi all you Excel gurus out there --

Is there a way to have a spreadsheet tab automatically name itself based
on
a cell within the the sheet?

Thanks for your help.

Ellen


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 663
Default Naming Spreadsheet Tabs

No. You can only rename the Worksheet tab by double-clicking. However, if you
are familiar with the VBA programming buit into Microsoft Excel, then you
could write few lines of code for that behaviour.

Challa Prabhu

"Ellen G" wrote:

Hi all you Excel gurus out there --

Is there a way to have a spreadsheet tab automatically name itself based on
a cell within the the sheet?

Thanks for your help.

Ellen

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
Naming Worksheet tabs Scott@CW Excel Discussion (Misc queries) 11 August 2nd 07 08:36 AM
Auto naming Tabs in a Workbook Johnny Excel Discussion (Misc queries) 5 August 29th 06 04:42 PM
Naming Tabs ebro Excel Discussion (Misc queries) 3 July 13th 06 11:07 PM
naming tabs Jeff Excel Worksheet Functions 8 February 6th 06 04:41 AM
Naming Sheets Tabs Cgbilliar Excel Worksheet Functions 2 November 5th 04 05:21 PM


All times are GMT +1. The time now is 01:04 PM.

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"