|
- Sub 填充()
- Dim ar, i, a, s, m
- Range("F4:AI10000").ClearContents
- Range("F4:AI10000").Interior.ColorIndex = xlNone
- Range("F4:AI10000").Font.ColorIndex = 0
- ar = Range("A1").CurrentRegion
- For i = 4 To UBound(ar)
- If ar(i, 3) <> "" Then
- For j = 1 To 3
- a = Cells(i, j + 2)
- Cells(i, a + (j - 1) * 10 + 6) = a
- Cells(i, a + (j - 1) * 10 + 6).Interior.ColorIndex = j + 33
- Cells(i, a + (j - 1) * 10 + 6).Font.ColorIndex = 3
- Next
- s = i
- End If
- Next
- For j = 6 To 35
- m = 0
- For i = 4 To s
- m = m + 1
- If Cells(i, j) = "" Then Cells(i, j) = m Else: m = 0
- Next
- Next
- End Sub
复制代码 |
评分
-
1
查看全部评分
-
|