# Convert long integer color value to RGB

Discussion in 'Microsoft Powerpoint' started by Dale Fye, Mar 12, 2008.

1. ### Dale FyeGuest

I have some long integer color values that I need to convert to RGB parameters.

I saw a formula for this somewhere, but cannot remember the specifics and
cannont find a referenece on-line.

Dale
--

Dale Fye, Mar 12, 2008

2. ### tohlzGuest

You can look for online convertor (Search for RGB to Hex Converter):
http://bumblemonkey.com/picker/picker.html
--
Shawn Toh (tohlz)
Microsoft MVP PowerPoint

Site Updated: Feb 20, 2008
(Amazing PowerPoint animations, artworks, games here)
http://pptheaven.mvps.org
PowerPoint Heaven - The Power to Animate

"Dale Fye" wrote:

> I have some long integer color values that I need to convert to RGB parameters.
>
> I saw a formula for this somewhere, but cannot remember the specifics and
> cannont find a referenece on-line.
>
> Dale
> --
>
>

tohlz, Mar 12, 2008

3. ### ChiragGuest

Here is a sub routine that you can use:

---
Sub ConvertLongToRGB(ByVal Value As Long, R As Byte, G As Byte, B As Byte)
R = Value Mod 256
G = Int(Value / 256) Mod 256
B = Int(Value / 256 / 256) Mod 256
End Sub
---

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html

"Dale Fye" <> wrote in message
news:...
>I have some long integer color values that I need to convert to RGB
>parameters.
>
> I saw a formula for this somewhere, but cannot remember the specifics and
> cannont find a referenece on-line.
>
> Dale
> --
>

Chirag, Mar 12, 2008
4. ### Dale FyeGuest

Thanks, guys.

I eventually found what I needed in the Powerpoint help. I had looked at
the RGB property, but didn't realize that there was also a function, and the
function example gave me what I needed.

Dale

"tohlz" <pptheaven[AT]gmail[DOT]com> wrote in message
news:...
> You can look for online convertor (Search for RGB to Hex Converter):
> http://bumblemonkey.com/picker/picker.html
> --
> Shawn Toh (tohlz)
> Microsoft MVP PowerPoint
>
> Site Updated: Feb 20, 2008
> (Amazing PowerPoint animations, artworks, games here)
> http://pptheaven.mvps.org
> PowerPoint Heaven - The Power to Animate
>
>
> "Dale Fye" wrote:
>
>> I have some long integer color values that I need to convert to RGB
>> parameters.
>>
>> I saw a formula for this somewhere, but cannot remember the specifics and
>> cannont find a referenece on-line.
>>
>> Dale
>> --
>>