To all,
I have a macro that list all the .csv files in a specified folder.
I would like to add an option so that only the .csv files corresponding to an (user) specified option are listed
Let's say that I have 2 options 'A' & 'B'
.csv file for option 'A' will always have the keyword "AAA" in row 1, col 2
.csv file for option 'B' will always have the keyword "BBB" in row 1, col 2
Is is possible to check "on-the-fly" i.e. when the macro create the list if a file is type 'A' or 'B' without
reading the 1st line
spline the line at the ","
check field 1 for "AAA" or "BBB" against specified option
add file name to ListToDisplay depending on previous check
In other word: is there a "smarter" way od doing it?
Thanks
Regards
I have a macro that list all the .csv files in a specified folder.
I would like to add an option so that only the .csv files corresponding to an (user) specified option are listed
Let's say that I have 2 options 'A' & 'B'
.csv file for option 'A' will always have the keyword "AAA" in row 1, col 2
.csv file for option 'B' will always have the keyword "BBB" in row 1, col 2
Is is possible to check "on-the-fly" i.e. when the macro create the list if a file is type 'A' or 'B' without
reading the 1st line
spline the line at the ","
check field 1 for "AAA" or "BBB" against specified option
add file name to ListToDisplay depending on previous check
In other word: is there a "smarter" way od doing it?
Thanks
Regards