I have this cod and it sould delete the entire column or columns in the list.
cell A2 onwards will have a list of column headers which need to be deleted,
my records starts for row no 8 and column E its E8
I am not sure as what is the problem, any suggestions.
cell A2 onwards will have a list of column headers which need to be deleted,
my records starts for row no 8 and column E its E8
I am not sure as what is the problem, any suggestions.
VBA Code:
Sub NokiaMDURawData()
Dim Ary As Variant
Dim i As Long
'Dim i As String
Dim Fnd As Range
With Sheets("FTTX 050 Nokia MDU RawData")
Ary = .Range("A2", .Range("A" & Rows.Count).End(xlUp)).Value2
End With
For i = 2 To UBound(Ary) -- ''[B]I am getting the error here[/B]
Set Fnd = Range("8:8").Find(Ary(i, 5), , xlValues, xlWhole, , , False, , False)
If Not Fnd Is Nothing Then Fnd.EntireColumn.Delete
Next i
End Sub