I'm looking for a way (function) to convert the userform back color(example: &H8000000F) to RGB values.
Reason is that i use sometimes a picture in a Userform button or Userform image.
VBA doesn't accept a PNG picture but a BMP.
BMP doesn't support tranparent colors, so i want to set the surrounding color (set as transparent color in GIF & PNG pictures) as close as the Userform backcolor, using Paint -> Edit Colors.
I guess there's more than the RGB values only in this value ,i count 8 digits, but every color is represented by 2 digits (Decimal :0 -> 255 = Hex: 00 to FF).
where are the remaining 2 digits used for?
Any help in this mystery of colors is appreciated.
For the moment, i'm just guessing the RGB values and use 242,242,242 .
it's pritty close the the wanted color, but i'm wondering if this could be calculated using a function.
Thanks for any help.