请帮忙解释下面语句意思-2'填写遗漏值 Dim n As Integer Dim arrR() As Integer,

请帮忙解释下面语句意思-2
'填写遗漏值
Dim n As Integer
Dim arrR() As Integer, arrB() As Integer
ReDim arrR(5), arrB(5)
Dim r As Range
Dim k As Long
Dim t As Integer
arrR(0) = 9
arrB(0) = 9
Range("B3:AX7").Value = ""

For n = 2 To 50
k = 9

Do While Cells(k, n).Text = ""
k = k + 1
Loop

For t = 1 To 5
Do While Cells(k, n).Text = ""
k = k + 1
Loop
arrR(t) = k
arrB(t) = k
k = k + 1
If n < 35 Then
If Cells(k, n).End(xlDown).Row > 65530 Then Exit For
Cells(t + 2, n) = arrR(t) - arrR(t - 1) - 1
ElseIf n > 34 Then
If Cells(k, n).End(xlDown).Cells.Row > 65530 Then Exit For
Cells(t + 2, n) = arrB(t) - arrB(t - 1) - 1
End If
Next t
Next n
Exit Sub
End If ' If Target.Value = Sheets("双色球").Cells(i, 2)
Next i
Else 'If Len(Target.Value) = 7
Exit Sub
End If 'If Len(Target.Value) = 7

End Sub
人生近古稀 1年前 已收到1个回答 举报

wwb2788 幼苗

共回答了19个问题采纳率:89.5% 举报

Do While Cells(k,n).Text = ""
循环执行 条件是 如果表格 行K 列N 的内容是“”(空的) 就继续循环执行

1年前

1
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.023 s. - webmaster@yulucn.com