|
代码如下。。。
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Target.Address = "$P$1" Then
arr = [e10:e210]
arr(UBound(arr), 1) = 0
brr = [k10:k210]
ReDim crr(1 To 1000, 0)
For i = 1 To 17
brr(i, 1) = Empty
Next
For i = 1 To UBound(arr)
If IsNumeric(arr(i, 1)) And Len(brr(i, 1)) <> 0 Then
n = n + 1
crr(n, 0) = brr(i, 1)
End If
Next
Range([p196], [p196].End(3)).ClearContents
[p196].Offset(-n + 1).Resize(n) = crr
Beep
End If
Application.EnableEvents = True
End Sub
|
评分
-
2
查看全部评分
-
|