我希望程序在未找到錯誤的情況下輸出消息。VBA Excel 2010,isError函數
Sub casesVsQueue()
Dim loop_counter As Integer
Dim colD_counter As Integer
loop_counter = 1
colD_counter = 2
Do Until IsEmpty(Sheets("Sheet1").Range("A" & loop_counter).Value)
If IsError(Sheets("Sheet1").Range("C" & loop_counter).Value) Then
Sheets("Sheet1").Range("D" & colD_counter).Value = Sheets("Sheet1").Range("A" & loop_counter).Value
colD_counter = colD_counter + 1
End If
loop_counter = loop_counter + 1
Loop
End Sub
那麼目前你的代碼有問題嗎? –