Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Is there a way to setup Worksheet Tab Descriptions based on cell i

I would like to setup tab descriptions that are conditional based on cell
info. Is it possible? If so, can you send me example?
--
Thanks for your help
MsCone
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Is there a way to setup Worksheet Tab Descriptions based on cell i

With the limited information provided:

go to the thisworkbook module. Assume you want to rename the sheet to match
the value in cell A1 of that sheet. Put is code like this:

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
if Target.Address = "$A$1" then
sh.name = Target.Text
End if
End Sub

--
regards,
Tom Ogilvy



"mscone2000" wrote:

I would like to setup tab descriptions that are conditional based on cell
info. Is it possible? If so, can you send me example?
--
Thanks for your help
MsCone

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Is there a way to setup Worksheet Tab Descriptions based on ce

How do I get this code to fire upon opening the spreadsheet?
--
Thanks for your help
MsCone


"Tom Ogilvy" wrote:

With the limited information provided:

go to the thisworkbook module. Assume you want to rename the sheet to match
the value in cell A1 of that sheet. Put is code like this:

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
if Target.Address = "$A$1" then
sh.name = Target.Text
End if
End Sub

--
regards,
Tom Ogilvy



"mscone2000" wrote:

I would like to setup tab descriptions that are conditional based on cell
info. Is it possible? If so, can you send me example?
--
Thanks for your help
MsCone

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Is there a way to setup Worksheet Tab Descriptions based on ce

If you want all of the sheets renamed on open then give this a try. It must
be placed in ThisWorkbook (Right click the Excel icon beside File in the menu
bar and select view code). The error handler is necessary if you try to name
the sheet something not allowed (such as duplicating an existing sheet name,
a sheet name that is too long or naming the sheet "history")...

Private Sub Workbook_Open()
Dim wks As Worksheet

On Error Resume Next
For Each wks In Worksheets
wks.Name = wks.Range("A1").Value
Next wks
On Error GoTo 0
End Sub


--
HTH...

Jim Thomlinson


"mscone2000" wrote:

How do I get this code to fire upon opening the spreadsheet?
--
Thanks for your help
MsCone


"Tom Ogilvy" wrote:

With the limited information provided:

go to the thisworkbook module. Assume you want to rename the sheet to match
the value in cell A1 of that sheet. Put is code like this:

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
if Target.Address = "$A$1" then
sh.name = Target.Text
End if
End Sub

--
regards,
Tom Ogilvy



"mscone2000" wrote:

I would like to setup tab descriptions that are conditional based on cell
info. Is it possible? If so, can you send me example?
--
Thanks for your help
MsCone

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
Name a worksheet tab based on the value in a cell. Christine Excel Discussion (Misc queries) 1 April 2nd 10 06:48 PM
attaching descriptions to list of values for cell validation landolas Excel Discussion (Misc queries) 1 May 18th 07 04:39 PM
Create Cell Comment based on text in a cell on another worksheet Dave Fellman Excel Discussion (Misc queries) 2 March 15th 07 09:49 AM
Cannot see formula descriptions in worksheet as I type a formula. RABL33 Excel Worksheet Functions 5 January 17th 07 06:59 AM
setup a range based on a variable James New[_2_] Excel Programming 1 December 2nd 04 10:06 PM


All times are GMT +1. The time now is 07:20 AM.

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"