Guest_imported
New member
- Jan 1, 1970
- 0
I require a working formula that allows me to translate a VB decimal color into an RGB color.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Command1_Click()
Dim a As Long
Dim r As Long
Dim g As Long
Dim b As Long
a = YourDecimal
r = a Mod 256
a = (a - r) / 256
g = a Mod 256
a = (a - g) / 256
b = a
MsgBox "r " & r & vbCrLf & "g " & g & vbCrLf & "b " & b & vbCrLf
End Sub