0
Sub Test()
Dim g1val As Integer
g1val = 0
For i = 3 To 27
If g1val >= Cells(33, i).Value Then
g1val = g1val
ElseIf g1val < Cells(33, i).Value Then
g1val = Cells(33, i).Value
End If
Next i
End Sub
在這裏,當我在第3行放置觸發斷點並由F8執行時,快速執行'g1val'不會拾取任何值。當我執行沒有任何斷點的代碼時,也會發生同樣的情況。你能幫忙嗎?......在vba中切換斷點