hi all
i opened a csv file and copy the contents. i activated an excel file and have the copied contents from csv file pasted into excel file. now,how do i close the csv file programmatically?
hi all
i opened a csv file and copy the contents. i activated an excel file and have the copied contents from csv file pasted into excel file. now,how do i close the csv file programmatically?
Some more information would be useful. How did you open the CSV file and copy it's contents to Excel? Did you do it with a programme that read the CSV file and inserted into Excel? Did you use the Windows clipboard somehow?
This should do it ..
Workbooks("MYCSV_File.CSV").Close SaveChanges:=False