我想了解这个代码,我仍然不知道它为什么在单元格A1上以2开头,它不应该以1开头吗?在Excel中的VBA 2003
Private Sub CommandButton1_Click()
Dim i, j As Integer
For i = 1 To 10
For j = 1 To 5
Cells(i, j).Value = i + j
Next j
Next i
End Sub
,因为我的其他的例子,我有这样的,它与1 A1开始:
Private Sub CommandButton1_Click()
Dim i As Integer
For i = 1 To 10
Cells(i, 1).Value = i
Next
End Sub
感谢:-)将大大感谢您的帮助
确定,但为什么它以2开头?你也试过这个吗? – tintincutes 2009-11-19 08:50:14