|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
代码如下。。。
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$E$1" Then
arr = [f9:f108]
[j9].CurrentRegion.ClearContents
ReDim brr(1 To UBound(arr), 1 To 10)
For i = 1 To UBound(arr)
brr(i, arr(i, 1)) = 0
For j = 1 To 10
If i = 1 Then
If Len(brr(i, j)) = 0 Then brr(i, j) = 1
Else
If Len(brr(i, j)) = 0 Then brr(i, j) = brr(i - 1, j) + 1
End If
Next
Next
Beep
[j9].Resize(UBound(arr), 10) = brr
End If
End Sub
|
评分
-
2
查看全部评分
-
|