Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
static69
 
Posts: n/a
Default check boxes that highlight row


I want to put a check box on the left side of my sheet and when the user
clicks it, it would high light the row. I got it to work once..though i
dont know how, and i cant get it to do it again. I used conditional
formatting and use the cell value=true condition to do it. But now its
not working at all.... any ideas?


--
static69
------------------------------------------------------------------------
static69's Profile: http://www.excelforum.com/member.php...o&userid=11075
View this thread: http://www.excelforum.com/showthread...hreadid=374756

  #2   Report Post  
mangesh_yadav
 
Posts: n/a
Default


Select a check-box from the forms menu. Link cell A1 to this checkbox.
Select the entire row you want to highlight. Go to Format Conditional
formatting. Select 'formula is'. And enter the following formula in it:
=$A$1=TRUE
Click format button, and select the required color in patterns tab.

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=374756

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

Another approach

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

On Error GoTo ws_exit:
Application.EnableEvents = False
With Target
If .Column = 1 Then
If .Value = "a" Then
.Value = ""
.EntireRow.Interior.ColorIndex = xlColorIndexNone
Else
.Font.Name = "Marlett"
.Value = "a"
.EntireRow.Interior.ColorIndex = 35
End If
.Offset(0, 1).Activate
End If
End With

ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.





--
HTH

Bob Phillips

"mangesh_yadav"
wrote in message
news:mangesh_yadav.1pq76b_1117256701.655@excelforu m-nospam.com...

Select a check-box from the forms menu. Link cell A1 to this checkbox.
Select the entire row you want to highlight. Go to Format Conditional
formatting. Select 'formula is'. And enter the following formula in it:
=$A$1=TRUE
Click format button, and select the required color in patterns tab.

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile:

http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=374756



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
How do I restrict only 1 of 2 check boxes be checked? Board Excel Discussion (Misc queries) 3 May 17th 05 06:47 PM
Check Boxes Christine C. Excel Worksheet Functions 1 May 11th 05 01:17 AM
Check boxes in a column BenJAMMIN Excel Discussion (Misc queries) 5 April 9th 05 11:11 PM
count check boxes Tony Excel Worksheet Functions 3 April 8th 05 03:48 AM
Adding Check Boxes Mike R Excel Discussion (Misc queries) 2 February 13th 05 03:59 AM


All times are GMT +1. The time now is 12:00 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"