Hello forum.
I am going to have 3 files in a folder. One file is the macro which I was hoping to get codes to run. The other file is the csv file which I need the macro to work on. The third file is a text file which is a source of reference.
In the CSV File, first sheet, Column D (starting from row 2 because row 1 is the header), there are names of students.
Example in cell D2, it is “13 - Thomas Rich” and in Cell D5, it is “11 - Michelle Newton” and in cell D4, it is “09 - Cindy Bell”
These are all names of students and it goes from cell D2 to the last row.
My source of reference is the text file (Sample name list.txt) in this folder. This file will indicate the word, “Female” after a commar on the name.
Example, “02 – Jennifer Crown,Female”
On the next line, it may show “86 – Tom Hardy” (the male names will not be indicated that this is a male name)
Only female name such as “98 – Mary Brown,Female” will be indicted in this text file.
Is there a way to code a VBA into the macro so that it will use the source file and identify the female names and extract the whole row (I only need from column A to Q) into a separate new excel file? I need a new excel file for the female names (with header) and another file for the male students
Thank you.
I hope I am not making anyone confused. Thank you so much!
Bookmarks