随机选择,限定次数
大神 ,伸下援手 Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, ) Is Nothing Then
Application.EnableEvents = False
For i = 2 To 13
If Cells(i, 1) <> "" Or Cells(i, 2) <> "" Then k = k + 1
If k > 8 Then MsgBox "够了": Target.ClearContents: GoTo 100
Next
100:
Application.EnableEvents = True
End If
End Sub
完美解决,感谢
页:
[1]