0
1)我有一個與我的FOR循環porblem。我去無限。這是我要求你幫忙的第一個問題。
2)第二個問題是,我不知道如何在「If」中添加多個條件
我的問題在代碼中作爲註釋。我的循環不會結束
Sub Repurchase_upload()
Dim Worksheet As Worksheets
startrow = Worksheets("GUTS").Cells(10, 1) 'Here I denote 1
endrow = Worksheets("GUTS").Cells(11, 1) 'Here I denote 1000
For x = startrow To endrow
If Cells(x, "A").Value <> "DU" Then 'I would like it to look like that: 'If Cells(x, "A").Value <> "DU" or "DR" or "EK" Then' but I don't know how to do this 'or'
Cells(x, "A").EntireRow.ClearContents
End If 'And here it won't end...
Next
End Sub