Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default conditional formatting for tab color

Is there a way to conditionally color a tab based on the value of a cell in
the worksheet? I'm using Excel 2003 (but will be upgrading soon to 2007)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 109
Default conditional formatting for tab color

Rosanne

I don't think you can directly link the tab color to a cell value;
but, you can change the tab color in an event triggered by a change in
the workbook or some worksheet event. It depends a lot on what is
going to be changing in your particular situation.

As an example, if you want a sheet tab to change color when you
deactivate a sheet (it won't make much difference while the sheet is
active since it will mostly be white then) you can have a code like:

Private Sub Worksheet_Deactivate()
Me.Tab.ColorIndex = Range("a1").Value
End Sub

This goes in the code associated with the particular worksheet. This
will change the sheet tab color index to the value in cell A1 whenever
you move to another sheet. Of course it will give an error if cell A1
contains an invalid color index; you can build the necessary error
checking in the code or in the worksheet validation as you see fit.

Good luck.

Ken
Norfolk, Va


On Oct 29, 4:27*pm, Rosanne wrote:
Is there a way to conditionally color a tab based on the value of a cell in
the worksheet? *I'm using Excel 2003 (but will be upgrading soon to 2007)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default conditional formatting for tab color

You can do it with some type of event code.

What type of value...text or numeric?

How does the value change.......manually or formula driven?

Post a range of numbers or samples of text.


Gord Dibben MS Excel MVP

On Wed, 29 Oct 2008 13:27:01 -0700, Rosanne
wrote:

Is there a way to conditionally color a tab based on the value of a cell in
the worksheet? I'm using Excel 2003 (but will be upgrading soon to 2007)


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
conditional formatting color Sandy Excel Worksheet Functions 6 October 31st 08 07:17 PM
Conditional Formatting on Color Excel Learner Excel Worksheet Functions 4 March 11th 07 05:13 PM
Color Conditional Formatting Conditional Formatting Excel Worksheet Functions 1 January 12th 07 06:37 PM
Conditional Formatting and Cell Color nemadrias Excel Worksheet Functions 7 July 28th 06 05:01 PM
Conditional color formatting entries have wild color. John Geyer Excel Discussion (Misc queries) 0 February 24th 06 06:11 PM


All times are GMT +1. The time now is 04:40 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"