我想了解這個代碼,我仍然不知道它爲什麼在單元格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