simpledude
simpledude

Reputation:

How to close the opened file?

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?

Upvotes: 0

Views: 361

Answers (1)

dbb
dbb

Reputation: 2877

This should do it ..

Workbooks("MYCSV_File.CSV").Close SaveChanges:=False

Upvotes: 1

Related Questions