返回列表 上一主題 發帖

EXCEL VBA 請益

回復 1# itskk

真的是n/a
     If Not IsError(Cells(4, 26)) Then
    程式碼        
    End If
  
文字的n/a  
    If Cells(4, 26) <> "N/A" Then
    程式碼
    End If

TOP

回復 4# itskk

不能用是打錯字,那個多格要一次檢查才行

    If IsError(Cells(y, 8)) Or IsError(Cells(y, 11)) Or IsError(Cells(y, 26)) Or IsError(Cells(y, 57)) Or IsError(Cells(y, 58)) Then
        '其中一格有n/a
    Else
        原本的程式碼
    End If

TOP

        靜思自在 : 做好事不能少我一人,做壞事不能多我一人。
返回列表 上一主題