Convert long integer color value to RGB

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

  1. Dale Fye

    Dale Fye Guest

    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
    --

    email address is invalid
    Please reply to newsgroup only.
     
    Dale Fye, Mar 12, 2008
    #1
    1. Advertisements

  2. Dale Fye

    tohlz Guest

    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
    > --
    >
    > email address is invalid
    > Please reply to newsgroup only.
    >
     
    tohlz, Mar 12, 2008
    #2
    1. Advertisements

  3. Dale Fye

    Chirag Guest

    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
    > --
    >
    > email address is invalid
    > Please reply to newsgroup only.
     
    Chirag, Mar 12, 2008
    #3
  4. Dale Fye

    Dale Fye Guest

    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
    >> --
    >>
    >> email address is invalid
    >> Please reply to newsgroup only.
    >>
     
    Dale Fye, Mar 13, 2008
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Guest

    Use embedded Excel to provide RGB

    Guest, Jun 4, 2004, in forum: Microsoft Powerpoint
    Replies:
    4
    Views:
    261
    Guest
    Jun 6, 2004
  2. Charlie
    Replies:
    1
    Views:
    310
    Steve Rindsberg
    Jul 30, 2004
  3. Replies:
    0
    Views:
    1,345
  4. John

    Convert Color.RGB to hexadecimal value

    John, Apr 18, 2005, in forum: Microsoft Powerpoint
    Replies:
    6
    Views:
    984
    Shyam Pillai
    Apr 18, 2005
  5. Ross Penn

    CMYK to RGB conversion

    Ross Penn, Nov 22, 2005, in forum: Microsoft Powerpoint
    Replies:
    3
    Views:
    1,634
    Ross Penn
    Nov 28, 2005
  6. mikewillnot
    Replies:
    1
    Views:
    740
    Echo S
    Feb 26, 2008
  7. RoadKill

    How to Determine Custom Color in RGB?

    RoadKill, Apr 16, 2008, in forum: Microsoft Powerpoint
    Replies:
    3
    Views:
    569
    DerbyDad03
    Apr 16, 2008
  8. color transition

    color transition (color changes from dark color to light color)

    color transition, Nov 20, 2009, in forum: Microsoft Powerpoint
    Replies:
    2
    Views:
    8,461
    John Wilson
    Nov 21, 2009
Loading...