0
我試圖刪除符合指定條件的代碼中的行。我也收到語法錯誤。我直接在Excel開發人員窗口中輸入。預期:在Excel中聲明錯誤的結尾
Sub create()
Dim ed(1 To 944)
Dim female(1 To 944)
Dim edfemale(1 To 944)
For i = 1 To 944
ed(i) = Cells(i, 1).Value
female(i) = Cells(i, 13).Value
edfemale(i) = Cells(i, 1) * Cells(i, 13)
If edfemale(i) = 0 Then
Cells(i,1 to 14) = ""
End If
Next i
End Sub
你打算在這裏做什麼:'Cells(i,1 to 14)=「」'? –
範圍(Cells(i,1),Cells(i,14))。value =「」 – enderland