Every morning I need to open a csv file from a web based server, sort and filter the data, then copy the relevant data over to an Excel sheet. To make things even more interesting, only part of the file name stays the same. I prefer to not have to save the file as I am trying to make sure that the code works for everyone. The file is not located anywhere that I can get to except through a web based interface. I figured out how to do everything if this was a Excel file. The code that I am using is:
For Each wb In Workbooks 'Finds Oracle workbook
If Left(wb.Name, 10) = "Custom_STN" Then Set oBook = wb
Next
This works great for Excel files but it doesn't look at csv files. Is there anyway to automate this without have to save the file?
For Each wb In Workbooks 'Finds Oracle workbook
If Left(wb.Name, 10) = "Custom_STN" Then Set oBook = wb
Next
This works great for Excel files but it doesn't look at csv files. Is there anyway to automate this without have to save the file?