How to get the individual RGB values from the Common Dialog's return value
If you want to convert the Common Dialog's color to e.g. hex values (for use in HTML code), you might want to extract the Red, Green and Blue parts of the color code that is returned. This is how you do it.

   Red = RGBValue And &HFF&
   Green = (RGBValue And &HFF00&) / 256
   Blue = (RGBValue And &HFF0000) / 65536