Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim I As Integer
If Cells(2, Target.Column) < > "" Then
If Target.Row < 3 Or Target.Row > 11 And Target.Row < 22 Then Exit Sub
For I = 12 To 21
If Cells(I, Target.Column) = "" Then
MsgBox "黄色区域内数据输入不全!", vbOKOnly + vbExclamation, "输入提示:"
Exit Sub
End If
Next I