Hi Jindon,
I need to specify the column name to delete a column instead of specifying a range.
try something like thisI tried it Jindon.
My column names are:
Number, Description, Filter, Automate
I need to delete columns filter and automate. I cannot specify the same in the range. This column Filter can be any column in the CSV file.
Dim e
With Sheets(1)
On Error Resume Next
For Each e In Array("Number","Description","Filter","Automate")
.Cells.Find(e,,,xlWhole).EntireColumn.Delete
Next
End With