Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,814
Default Option button and Highlighting an area

I would like to select option button A and have "area A" highlighted, and
"area B" darkened, and the when I select option button B have "area A"
Darkened and "area B Highlighted", Any one have any ideas please. Thank you
to all in advance for any help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Option button and Highlighting an area

Not too sure what you mean by Highlight but here goes nothin... Grab 2 option
buttons from the Control Toolbox (not the forms toolbar) and place then on a
sheet. Right click on the sheet tab and slect view code. Now add the
following code...

Private Sub OptionButton1_Click()
Range("A1:A10").Interior.ColorIndex = 36
Range("B1:B10").Interior.ColorIndex = 0
End Sub

Private Sub OptionButton2_Click()
Range("B1:B10").Interior.ColorIndex = 36
Range("A1:A10").Interior.ColorIndex = 0
End Sub

--
HTH...

Jim Thomlinson


"Steve" wrote:

I would like to select option button A and have "area A" highlighted, and
"area B" darkened, and the when I select option button B have "area A"
Darkened and "area B Highlighted", Any one have any ideas please. Thank you
to all in advance for any help.

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
Excel check one column for highlighting and return number Please_help Excel Discussion (Misc queries) 1 February 27th 07 12:52 AM
Working spreadsheet highlighting function for Excel 2007 Mr. Low Excel Worksheet Functions 4 June 16th 06 06:12 PM
Selected cell highlighting has vanished...no shading now. Brymor Excel Worksheet Functions 0 February 6th 06 03:47 PM
Help with Highlighting all duplicates in a row Jimv Excel Discussion (Misc queries) 4 April 21st 05 07:12 PM
2 part question - macro / command button John Excel Discussion (Misc queries) 3 April 16th 05 09:00 PM


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

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"