Hi guys,
I'm trying to create some code that opens a file from a network location, based on filename / date.
First, I have userform input from the user that determines a weeknumber, year and company that he or she wants to see the analysis from - this constructs the network path where the files are :
so, the path will be something like this :
\\networklocation\information\2014\CompanyX\Week_12\Analyse
where the bold parts are gathered through userform input
What I'd like to have is a code that
- checks if that network location is there
- checks if one or multile files containing the word "doorverkoop" are in that location
- opens the file with the word "doorverkoop" in it that has the most recent file date
- if the file or network location are not found, have a popup allow the user to open a file he or she wants to import
Since I'm not great with file handling in VBA, I'd appreciate it if anyone can help me out / point me in the right direction.
Thanks so much in advance!!
Bookmarks