Nothing to Lose & I have been trying to call a file when No is entered in column
G (Is this a Follow Up) &
TRUE is in column W(Boolean value). The first check box In
Check In - CPRS Note is linked to column W. Cell range for both Column G & W is Row 4:10 & 13:17. The code works if
TRUE is in column W first; & then NO in column
G. I am trying to reverse the order. Below is a SC of Columns G (Is this a Follow Up), & H (Check In - CPRS Note). Here is the current code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Select Case Sh.Name
'These are the worksheets here that are not to be called with change
Case "Sheet1", "Sheet11", "Sheet21", "Sheet31", "Sheet41", "Sheet42", "Sheet43", "Sheet44", "Sheet 45", "Sheet46", "Sheet47", "Sheet48", "Sheet49", "Sheet50", "Sheet51", "Sheet52", "Sheet53", "Sheet54", "Sheet55", "Sheet56", "Sheet57", "Sheet58"
Exit Sub
End Select
If Not (Application.Intersect(Target, Sh.Range("B4:B10, B13:B17")) _
Is Nothing) Then 'Note that Range is now identified with the calling Sheet object variable (Sh)
With Target
If Not .HasFormula Then
Application.EnableEvents = False
.Value = UCase(.Value)
Application.EnableEvents = True
End If
End With
End If
'The code below is a reminder to enter data in the Referral Workbook.
If Intersect(Target, Sh.Range("W:G")) Is Nothing Then Exit Sub
If Target.Value <> "No" Or Target.Offset(0, 16).Value <> True Then Exit Sub
If ReferralsCalled = False Then
'Shows a 3 line message box.
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, "Vocational Services Database"
Call Referals
End If
End Sub
The underlined code was graciously provided by Nothing to Lose. It was an improvement in the original code, but not what we were trying to accomplish.
