我想刪除列A含#REF
每一行刪除與#REF每一行使用VBA
我的代碼只能與value
工作,並且不會#REF
工作。
Dim varFindThis As Variant
Dim rngLookIn As Range
Dim f As String
varFindThis = Worksheets("Suivi2").Range("B1")
Set rngLookIn = Worksheets("Suivi2").Range("A:A")
If Not rngLookIn.Find(varFindThis, LookIn:=xlValues) Is Nothing Then
f = Worksheets("Suivi2").Range("B1").Value
'Since i didn't got that clear, here above you must create a code to declare "f" as whatever you want
Set c = Worksheets("Suivi2").Range("A:A").Find(f)
Worksheets("Suivi2").Range(c.Address).EntireRow.Delete
End If
工作表上是否存在其他可能的錯誤? – Jeeped