Just opening an empty csv file won't cause an error, so I suspect that there is more to it. Can you upload your worksheet? Or post the section of code which seems to be causing this error?