I have headers in row 1 on sheet "Data Import"
I have written code to delete a specific Col Header, but need it to delete several Col Headers for eg Physical address, Remarks, branch ID etc
It would be appreciated if someone could amend my code
I have written code to delete a specific Col Header, but need it to delete several Col Headers for eg Physical address, Remarks, branch ID etc
Code:
Sub DeleteSpecifcColumn()
Set MR = Range("A1:z1")
For Each cell In MR
If cell.Value = "Date" Then cell.EntireColumn.Delete
Next
End Sub
It would be appreciated if someone could amend my code