Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
fullers
 
Posts: n/a
Default Can I conditionally format tab names in excel?

I am looking to automatically name the tabs in my spreadsheet based on a
name/data within that worksheet. Is this possible
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)

On Error GoTo wb_exit
Application.EnableEvents = False

With Target
If .Address = "$H$1" Then
Sh.Name = .Value
End If
End With

wb_exit:
Application.EnableEvents = True
End Sub


'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--
HTH

Bob Phillips

"fullers" wrote in message
...
I am looking to automatically name the tabs in my spreadsheet based on a
name/data within that worksheet. Is this possible



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
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM
Import data from files with different names to EXCEL D'base. thunderfoot Excel Discussion (Misc queries) 2 June 10th 05 11:05 AM
how can I count distinct names in an excel list? RPC@Frito Excel Discussion (Misc queries) 5 February 3rd 05 09:12 PM
how to format excel format to text format with separator "|" in s. azlan New Users to Excel 1 January 31st 05 12:57 PM
In Excel, how can you format for 4 digit years (MM/DD/YYYY)? Chucky Excel Discussion (Misc queries) 4 January 19th 05 10:47 PM


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

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

About Us

"It's about Microsoft Excel"