I am trying to get a pop up message to run if the following 2 conditions are met "No" & "True". No is in cell range G4:G10, G13:G17; True is located in W4:W10, W13:W17. However true is a Boolean answer. I do have a formula located in cell range x4:x10, x13:x17 that concerts the Boolean answer to a 1 or 0. I thought that you had to convert a Boolean answer to a numeric answer to use in code.
When I run the code it sees the "no" & runs the message, & calls Referals. I have are 3 questions.
1.Do you have to convert Boolean answers to numeric?
2. How do you get excel to see the second condition?
3. Could you,explain what I am doing wrong?
Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
'The code below is a reminder to enter data in the Referral Workbook.
Application.ScreenUpdating = False
Dim lastRow As Long
Dim cell As Range
lastRow = Range("G" & Rows.Count).End(xlUp).Row
For Each cell In Range("G4:G10, G13:g17" & lastRow)
If InStr(1, cell.Value, "No") <> 0 Then
If InStr(1, cell.Offset(, 17).Value, "1") <> 0 Then
End If
End If
Next
Application.ScreenUpdating = True
MsgBox "Check to verify veteran data is entered in FY ## REFERALS." & vbCr & _
"It's critical that the veteran data is captured." & vbCr & _
"You have entered No into cell" & Target.Address, vbInformation, "Career Link Meeting List"
Call Referals
End Sub
1.Do you have to convert Boolean answers to numeric?
2. How do you get excel to see the second condition?
3. Could you,explain what I am doing wrong?