Using Visual Studio The 10 names on the txt file Robert Smith John Adams Charles
ID: 658658 • Letter: U
Question
Using Visual Studio
The 10 names on the txt file
Robert Smith
John Adams
Charles Xavier
Clark Kent
Eric Clapton
Pat Benetar
Abraham Lincoln
Paul Revere
Jimi Hendrix
Angelina Jolie
Explanation / Answer
folder_location = Application.ActiveWorkbook.Path
i2 = 0
strFile = Dir(folder_location & "")
While strFile <> ""
If Right(strFile, 3) = "csv" Afterthat
file_to_analyse = Split(strFile, "@")
If Right(file_to_analyse(0), 8) = date_we_want_to_analyse_on Afterthat
found_files_to_analyse(i2) = strFile
i2 = i2 + 1
End If
End If
strFile = Dir
Wend
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.