Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Color of worksheet Tab

To add to Jim's excellent information, David McRitchie has a detailed page
on this topic:


http://www.mvps.org/dmcritchie/excel/colors.htm

--
Regards,
Tom Ogilvy


"Jim Rech" wrote in message
...
I would just add to Tom and Norman's replies that the color assigned to a
Colorindex is customizable under Tools, Options, Color. So it's not
necessarily a fixed thing. I.e., 3 is not always red, it can be any color
assigned to it.

--
Jim
"AliH" wrote in message
...
| Thanks - where did you get the color numbers from? that was what I was
| looking for?
|
| "Norman Jones" wrote in message
| ...
| Hi AliH,
|
| Try:
|
| '============================
| Public Sub TesterAAA()
|
| Dim i As Long
|
| For i = 1 To ActiveWorkbook.Worksheets.Count
| If Worksheets(i).Tab.ColorIndex = 3 Then 'Red
| Sheets("YourSummarySheet").Cells(i + 1, "A").Value _
| = Worksheets(i).Name
| End If
| Next i
|
| End Sub
| '<<============================
|
| Change the sheet name to suit.
|
| ---
| Regards,
| Norman
|
|
|
| "AliH" wrote in message
| ...
| Is it possible to check the colour of a worksheet tab through code?

if
| yes
| how?
|
| I have red tabs and green tabs and want to create a summary sheet of
| only
| the red sheets
|
| Thanks
|
|
|
|
|
|




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
worksheet will not print in color mario Excel Discussion (Misc queries) 3 August 15th 06 09:06 PM
CANNOT COLOR MY WORKSHEET TABS, TAB COLOR NOT IN FORMAT pippa3art Excel Worksheet Functions 6 February 24th 06 11:24 PM
3 pg worksheet prints all pgs in color, but only 2 pgs in b&w? conroe76 Excel Discussion (Misc queries) 0 December 9th 05 04:39 PM
worksheet background color Mominator Excel Discussion (Misc queries) 5 March 12th 05 02:05 PM
fill row color on a specified worksheet GJones Excel Programming 0 September 1st 04 08:52 PM


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