Summer7sun
New Member
- Joined
- Sep 14, 2017
- Messages
- 33
Code:
Private Sub Worksheet_Calculate()
Dim aRng As Range
Dim aCell As Range
Set aRng = Range("AE9:AE92")
For Each aCell In aRng
If aCell.Value = "Yes" Then
Call HitIt
Exit Sub
End If
Next
For Each aCell In aRng
If aCell.Value = "No" Then
Call HitIt
Exit Sub
End If
Next
End Sub
Code:
Private Sub Worksheet_Calculate()
Dim bRng As Range
Dim bCell As Range
Set bRng = Range("BH9:BH92")
For Each bCell In bRng
If bCell.Value = "Yes To Do" Then
Call HitIt2
Exit Sub
End If
Next
For Each bCell In bRng
If bCell.Value = "No Dont" Then
Call HitIt2
Exit Sub
End If
Next
End Sub
these code work only if one of them is in the worksheet calculate event ... The cell change is due to a formula .... and how to combine these code and in future how to combine a new one similar to this please help
Last edited: