Dim c_lng256 As Long = 256
Dim c_lng65536 As Long = 65536
Dim lngColor as Long
Dim intRed as Integer, intGreen as Integer, intBlue as Integer
intRed = lngColor Mod c_lng256
intGreen = (lngColor And &HFF00FF00) / c_lng256
intBlue = (lngColor And &HFF0000) / c_lng65536
RGB Values to Long lngColor = RGB(intRed, intGreen,intBlue) _________________________________
In theory, there is no difference between theory and practice. In practice, there is. [attributed to Yogi Berra]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.