Not sure how you would determine a dark color from light but this might help.
You can separate the RGB components from a color value using this code
You can convert the RGB values to Hue, Saturation or Luminance. Search Google for the code.Code:Dim lngColor As Long Dim Red As Long Dim Green As Long Dim Blue As Long lngColor = 16777215 Red = lngColor And &HFF& Green = (lngColor \ &H100&) And &HFF& Blue = (lngColor \ &H10000) And &HFF&




Reply With Quote