Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Activate Condition When Another Cell Is Selected

Assuming the grid where the people are marks as present ia named range
called data, and you mark them with an x

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim cell As Range

If Target.Column = 1 Then

Me.Range("data").Cells.Interior.ColorIndex = xlColorIndexNone
For Each cell In Me.Range("data").Rows(Target.Row -
Me.Range("data").Cells(1, 1).Row + 1).Cells

If cell.Value = "x" Then

cell.Interior.ColorIndex = 38
End If
Next cell
End If
End Sub


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"T Tran" wrote in message
...
Is it possible to have conditions on cells that activate upon another cell
being selected?

For example:
Column A contains dates;
Row 1 contains personnel names;
Data reflects personnel's attendance;

If a date is selected, is it possible to have the cells (of the personnel
who are present) highlighted and bold based on whether or not they are
present?



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 activate the next cell in a selected range? Rubble Excel Programming 8 August 23rd 07 12:22 AM
activate/deactivate button with macro at given condition arcq Excel Programming 1 March 17th 05 05:35 AM
Activate last cell in selected range - an example DataFreakFromUtah Excel Programming 11 September 5th 04 02:02 AM
Activate button when row selected. Johnnyb Excel Programming 3 August 17th 04 01:51 PM
Activate user form upon condition fishergomz Excel Programming 2 May 6th 04 03:36 PM


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