This macro will force entry of a reason if "No" is chosen. Copy and paste this macro into the worksheet code module. Do the following: right click the tab for your sheet and click 'View Code'. Paste the macro into the empty code window that opens up. Close the code window to return to your sheet. Choose Yes or No in column C.
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("C:C")) Is Nothing Then Exit Sub
Dim reason As String
Application.EnableEvents = False
If Target = "No" And Target.Offset(0, 1) = "" Then
Do
reason = InputBox("Please enter a reason for answering 'No'.")
If reason <> "" Then
Target.Offset(0, 1) = reason
Exit Do
ElseIf reason = "" Then
MsgBox "You must enter a reason."
End If
Loop
End If
Application.EnableEvents = True
End Sub
Bookmarks