I need to open a comma delimited file from a network share and delete entire rows of data if the fourth delimited value in the row matches one of my keywords. There are 150 different options for that field and I need to exclude 38 of them. I am hoping this is something that can be automated using VBA.
The first two rows in the file contain detail that needs to remain intact and the third row contains comma delimited row headers which should also remain intact. The data I need to review begins in the fourth row and varies each month between 30-40k lines. I need to save the edited file in the same format with a different file name and leave the original file intact. I am only concerned with the code to filter and delete the rows meeting the criteria. I should have code to open and save the file once the editing is complete.
The first two rows in the file contain detail that needs to remain intact and the third row contains comma delimited row headers which should also remain intact. The data I need to review begins in the fourth row and varies each month between 30-40k lines. I need to save the edited file in the same format with a different file name and leave the original file intact. I am only concerned with the code to filter and delete the rows meeting the criteria. I should have code to open and save the file once the editing is complete.