I need some help with VBA code to import multiple .csv files into a single Excel sheet. I have .csv files that get filenames based on when they were created, in the format ddmmyyyyhhmm (121220161306 for example). I am trying to create a userform to select a date range and have the selected range be used to find all filenames of the .csv files that meet those criteria but I can't begin to find a way to make dates selected with a date picker translate into the format of the filenames. The end goal is to pull all the data from the .csv files that fall within the date range selected into 1 sheet and then I will filter it and create graphs based on different scenarios. I have a good handle on the data analysis portion but right now I am just importing all .csv files in the folder location.
I do not want to have to import all files and filter out by dates because the number of .csv files will become extensive as days go by.
Any help would be greatly appreciated.
I do not want to have to import all files and filter out by dates because the number of .csv files will become extensive as days go by.
Any help would be greatly appreciated.