Hello,
I need to delete Entire column in Excel sheet using column name.
In my example I need to delete the 3rd column with the name "DateOfBirth", instead of using column number. The code I'm using right now is:
Sub sbVBS_To_Delete_EntireColumn () Columns(1).EntireColumn.DeleteEnd Sub
Thanks Ryan
That's much better than column number, but I would prefer if there is any way to delete it using the name appear in the first row, which in my case is " DateOfBirth" . is it possible to do so?
Open in new window
to implement:
Open in new window