LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ken Ken is offline
external usenet poster
 
Posts: 207
Default use option button background color to format cells

I am trying to use the background color of an Optionbutton on a
worksheet (option button from forms toolbar) to change the pattern of
some cells. I am confused by the color numbering system. In one
instance the value associated with the OptionButton1.BackColor is
16777152. That causes an error when I try to assign it to my cell
range using

Range("B1_Team_top").Interior.ColorIndex=OptionBut ton1.BackColor

It looks in this case like the ColorIndex should be 34 for a similar
color. Are the numbering systems different and is there a way to
cross reference the value associated with the OptionButton.BackColor
to the number associated with the ColorIndex that looks the same?

Thanks

Ken
 
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
how to count cells with specific format (background color)? Blackheartedowl Excel Discussion (Misc queries) 1 February 8th 06 08:21 AM
Need help with Option Button dynamic background color Gary F Shelton Excel Discussion (Misc queries) 1 January 11th 05 05:34 PM
Changing Form Button Background Color wrkoch[_9_] Excel Programming 1 September 20th 04 11:46 PM
Changing Form Button Background Color wrkoch[_8_] Excel Programming 1 September 20th 04 10:55 PM
Changing Form Button Background Color wrkoch[_7_] Excel Programming 1 September 20th 04 09:32 PM


All times are GMT +1. The time now is 08:42 AM.

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"