The code above is what I am using to convert commondialog1.color to html hex values. it works on most colors but like on yellow it gives #00FFFF and on darkblue it give #80400 anyone know of a way to make the conversion work all of the time?Code:txtcolor(0).text = "#" & Right("00000" & Hex(CommonDialog1.Color), 6)
