1)我的 FOR 循环有问题。我去无止境。这是我第一个需要你帮助的问题。
2)第二个问题是我不知道如何在“如果”中添加一个以上的条件
我的问题在代码中作为注释。
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