Sign in to follow this  
Followers 0
everseeker

Since I am not allowed to SEARCH: RGB seems to be interpreted oddly...

1 post in this topic

I think this has been answered, but I am not allowed to SEARCH for info on color so...

When I look at an RGB value in most programs say something like Visual Color Picker, I work with Hex values of

RR GG BB (RGB!)

When I use

$oExcel.ActiveWorkbook.Sheets(1).Range("E" & $j + 1 & ":E" & $j + 1) .Interior.Color = 0x0000FF

I get

BB GG RR (BGR?)

When I use

$nColor = _ColorSetRGB( $aColor )

I get

RR BB GG (RBG?)

Why the variations?

(The last is actually from the help topic for _ColorSetRGB)


Everseeker

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0