Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default RGB fill color not right

Excel 2003. I'm using VBA's graphics methods to draw a large area on
the screen that is not exactly square. I then fill this area with a
solid RGB color. No pattern or transparency or anything, just a solid
beige color. Sometimes the area appears with the color I want, and
sometimes it's way too light, almost white. I can't figure out how to
fix this. Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default RGB fill color not right

Maybe have a serious talk with your VGA card? <g


"Lucky" wrote in message
...
Excel 2003. I'm using VBA's graphics methods to draw a large area on
the screen that is not exactly square. I then fill this area with a
solid RGB color. No pattern or transparency or anything, just a solid
beige color. Sometimes the area appears with the color I want, and
sometimes it's way too light, almost white. I can't figure out how to
fix this. Any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default RGB fill color not right

XL2003 has a limited color palette (56 distinct color slots I think) - if
you specifiy a color which isn't on the palette Excel will "automagically"
map it to the nearest palette color.

Only way around this is if you know up-front which exact colors you need:
then you can modify the workbook's color palette to make sure it includes
them.

Tim

"Lucky" wrote in message
...
Excel 2003. I'm using VBA's graphics methods to draw a large area on
the screen that is not exactly square. I then fill this area with a
solid RGB color. No pattern or transparency or anything, just a solid
beige color. Sometimes the area appears with the color I want, and
sometimes it's way too light, almost white. I can't figure out how to
fix this. Any ideas?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default RGB fill color not right

Sounds like you have drawn a Freeform, or some Shape at least. Unlike cells
and charts (in Excel 2003 and earlier) Shapes can be formatted to accept any
RGB colour, eg

Dim shp As Shape
Set shp = ActiveSheet.Shapes("Freeform 1") ' < change name
shp.Fill.ForeColor.RGB = RGB(25, 150, 225)
' unlikely to need the following but just in case
shp.Fill.Solid
shp.Fill.Transparency = 0
shp.ThreeD.Visible = msoFalse

Regards,
Peter T



"Lucky" wrote in message
...
Excel 2003. I'm using VBA's graphics methods to draw a large area on
the screen that is not exactly square. I then fill this area with a
solid RGB color. No pattern or transparency or anything, just a solid
beige color. Sometimes the area appears with the color I want, and
sometimes it's way too light, almost white. I can't figure out how to
fix this. Any ideas?



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default RGB fill color not right

Just to follow this up, I had added a smaller area within an adjoining
area that was white. Changing the color of the smaller area to beige
like the big area somehow fixed the problem. I don't quite understand
what happened, but thought I'd add this in for the benefit of others
who might experience a similar problem. Anyway, thanks to those who
replied.
Lucky


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Match TextBox Back Color to Cell Fill Color AMY Z. Excel Programming 4 October 12th 06 06:07 PM
change fill color of a range of cells based on color of a cell? DarMelNel Excel Programming 0 March 2nd 06 06:35 PM
My fill color and font color do not work in Excel Std Edition 2003 chapstick Excel Discussion (Misc queries) 1 September 11th 05 08:48 PM
Excel 2003 will not display color fonts or color fill cells DaveC Excel Worksheet Functions 1 April 11th 05 04:38 PM
My excel 2003 wont let me fill cells with color or color the tabs. trizog New Users to Excel 2 February 22nd 05 06:43 PM


All times are GMT +1. The time now is 06:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"