|
发表于 2016-3-8 15:10
|
显示全部楼层
本楼为最佳答案
- Sub p()
- For Each Cell In Range(Cells(1, 1), Cells(8, 8))
- If Cell.Row + Cell.Column > 8 Then
- Cell.Value = Cell.Row + Cell.Column - 8
- End If
- Next
- For Each Cell In Range(Cells(1, 9), Cells(8, 15))
- Cell.Value = Cells(Cell.Row, (16 - Cell.Column)).Value
- Next
- End Sub
复制代码 |
|