Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Setting colors for Controls

I'm stumped trying to get the color of a control (from the Control Toolbox)
to match the background color of my sheet (Excel 2003).

The Option Button resides over a portion of the sheet that has a standard
color fill selected from the bucket.

I right click the control, select Properties, and in the properties window,
I set the BackColor using the Palette colors - and choose the one that
appears to match the one chosen from the Bucket. I set the BackStyle to
Transparent. Everything looks fine until I exit Design Mode and click on the
Option Button. When I do, the background of the button turns a different
shade of the color that was set - at that color stays - even if the button is
deselected.

What can I do to make the colors the same so that when the button is
selected, the bounding box does not change color?

  #2   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Setting colors for Controls

try setting the option button's takefocusonclick property to false

"dsimcox" wrote:

I'm stumped trying to get the color of a control (from the Control Toolbox)
to match the background color of my sheet (Excel 2003).

The Option Button resides over a portion of the sheet that has a standard
color fill selected from the bucket.

I right click the control, select Properties, and in the properties window,
I set the BackColor using the Palette colors - and choose the one that
appears to match the one chosen from the Bucket. I set the BackStyle to
Transparent. Everything looks fine until I exit Design Mode and click on the
Option Button. When I do, the background of the button turns a different
shade of the color that was set - at that color stays - even if the button is
deselected.

What can I do to make the colors the same so that when the button is
selected, the bounding box does not change color?

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
Setting dataseries-colors with VBA in XL2007 Holger Gerths Charts and Charting in Excel 1 March 5th 10 07:22 PM
trouble setting colors feh Charts and Charting in Excel 3 July 10th 09 06:08 AM
Dynamically setting worksheet tab colors John Excel Worksheet Functions 4 January 29th 09 06:55 PM
Setting attributes for controls Don Madsen Excel Programming 2 October 29th 03 01:27 AM
Setting form controls focus and enter key John T Ingato Excel Programming 1 October 6th 03 05:13 PM


All times are GMT +1. The time now is 05:38 PM.

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

About Us

"It's about Microsoft Excel"