NathanStadig
New Member
- Joined
- Feb 24, 2011
- Messages
- 19
Thank-you for any assistance...
I have an excel spreadsheet where time is calculated.
If time out is entered in cell AA* then cell AC* in that row changes. What I want to do is if cell AC* is > than another cell (AQ1) then msg box appears. I want this to happen once data is entered in cell AA, not if cell AC is directly selected.
All I can figure out now is if cell AC* is selected.
Code I have so far which works great:
I have an excel spreadsheet where time is calculated.
If time out is entered in cell AA* then cell AC* in that row changes. What I want to do is if cell AC* is > than another cell (AQ1) then msg box appears. I want this to happen once data is entered in cell AA, not if cell AC is directly selected.
All I can figure out now is if cell AC* is selected.
Code I have so far which works great:
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column <> 29 And Target.Count = 1 Then Exit Sub
If Target > Range("$AQ$1") Then
UserForm1.Show
Else:
Exit Sub
End If
End Sub