# Convert long integer color value to RGB

Dale Fye
Guest
Posts: n/a

 12th Mar 2008
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
Guest
Posts: n/a

 12th Mar 2008
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
> --
>
>

Chirag
Guest
Posts: n/a

 12th Mar 2008
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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
Guest
Posts: n/a

 13th Mar 2008
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:(E-Mail Removed)...
> 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
>> --
>>
>>

 Thread Tools Rate This Thread Rate This Thread: 5 : Excellent 4 : Good 3 : Average 2 : Bad 1 : Terrible

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post mikewillnot Microsoft Powerpoint 1 26th Feb 2008 06:22 PM mikewillnot Microsoft Excel Charting 1 26th Feb 2008 06:22 PM =?Utf-8?B?UmljaA==?= Microsoft VB .NET 3 28th Apr 2005 12:23 AM John Microsoft Powerpoint 6 18th Apr 2005 02:05 PM cbu Microsoft Access Database Table Design 1 2nd Jan 2004 05:58 PM

Features