Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default John Walkenbach Color Palette

I am using John Walkenbach Color Palette. I use it to colour a button on my
userform. I then use the passed color to search for text in my file that has
the same color. The palatte comes up fine and passes the color to the button.

Problem is, once the color is passed from the palette to the button the
routine cannot seem to find the text with the same color eve though its
clearly there.

When I pick the color black in the palette, it illustrates the RGB color of:
0 0 206.
This is the top left color (where the black would normally be).

The code I have written to test if there is a match is:

Public Function CellFontHasColour(rng As Range)
If rng.Font.Color = FontColorColBtn.BackColor Then
CellFontHasColour = True
End If
End Function

In the immediate window I see:
?rng.Font.Color
0
?FontColorColBtn.BackColor
12632256

Why is my back color denoted as 12632256? I thought I passed a RGB 0 0 206.
Lastly, why is my color property on my font = 0?


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
Bring up Color Palette to select color pokdbz Excel Discussion (Misc queries) 4 August 6th 07 10:13 PM
Changing text case in entire database column from JOHN to John Kimberly in Palm Springs Excel Discussion (Misc queries) 2 October 10th 06 06:26 PM
Color Palette, color disappears Emil Excel Discussion (Misc queries) 3 November 29th 05 05:07 AM
how to format Doe,John to Doe, John (space after a comma) asuncionw Excel Worksheet Functions 8 November 4th 05 01:56 PM
John Walkenbach Colour Palette ExcelMonkey[_190_] Excel Programming 1 March 20th 05 07:23 PM


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