我試圖尋找與錯誤424的問題,但我沒有找到任何符合我的情況。VBA錯誤424與空
我正在3號線一個424錯誤:
For icount = 2 To no_items
If hid.Cells(icount, 1).Value > 0 Then
'If hid.Cells(icount, 1).Offset(-1).Value Is Empty Then
'hid.Cells(icount, 1).Value = 1
'Else
hid.Cells(icount, 1).Value = 1 + hid.Cells(icount, 1).Value
'End If
End If
Next
我的聲明如下:
Dim hid As Worksheet
Set hid = ThisWorkbook.Worksheets("Hidden")
hid.Visible = True
之前,我曾與第2行相同的錯誤:
If hid.Cells(icount, 1) is not empty Then
我不明白爲什麼會出現錯誤,一切都按照它應該的方式定義。 你能幫我嗎?用於不爲IsEmpty
見下文 –