Sub do_while_test()
Dim i, j As Integer
i = 1
j = 0
For j = 0 To 2
j = j + 1
Do While i <= 10 And Cells(i, j) = ""
Cells(i, j) = "AAA"
i = i + 1
Loop
Next
End Sub
感謝感謝~~
WesleyTsao作者: oobird 時間: 2011-6-21 17:48
例如:
Sub do_while_test()
For c = 1 To 5
For r = 3 To 4
If Cells(r, c) = "" Then Cells(r, c) = "AAA": Exit Sub
Next
Next
End Sub作者: wesleytsao 時間: 2011-6-21 18:12