• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 339
  • Last Modified:

Hex value of color

How do I get the hex value from the returned color value from a CommonDialog box using the CommonDialog.ShowColor?
0
rtcomp
Asked:
rtcomp
  • 2
1 Solution
 
mcriderCommented:
Hope this helps!

Dim ReturnedColor As Long
Dim ReturnedHexColor As String

CommonDialog1.Action = 3 'CALL COLOR DIALOG VOX
ReturnedColor = CommonDialog1.Color
ReturnedHexColor = Hex$(ReturnedColor)
Debug.Print ReturnedHexColor


Cheers!
0
 
rtcompAuthor Commented:
Thanks for the answer.
0
 
mcriderCommented:
Thanks for the points! Glad I could help!


Cheers!
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now