請問前輩
常常會出現錯誤訊息型態錯誤,請問VBA 假設 Cells(4, 26)為N/A , 要用什方式by pass &濾掉。
EXCEL VBA 請益


If Cells(Y, 58) > Cells(Y, 26) Then
If Cells(Y, 57) > Cells(Y, 26) Then
If (Cells(Y, 8) - Cells(Y, 26)) / Cells(Y, 26) > 0.025 Then
Cells(Y, 26).Interior.ColorIndex = 2
Else
Cells(Y, 26).Interior.ColorIndex = 18
End If
文章關鍵字
carterlouis wrote:
請問VBA 假設 Cells(4, 26)為N/A , 要用什方式by pass &濾掉。

用IF
carterlouis wrote:
If Cells(Y, 58) > Cells(Y, 26) Then
If Cells(Y, 57) > Cells(Y, 26) Then
If (Cells(Y, 8) - Cells(Y, 26)) / Cells(Y, 26) > 0.025 Then


前面加上
On Error Resume Next
文章分享
評分
評分
複製連結

今日熱門文章 網友點擊推薦!