Hi!
I am able to open the file I want using this:
But how do I then close it later on?
If I understand how this works correctly, I need the full filepath to open a file (i.e. the value of cell BD1), but only the book name to close it, right?
In this particular instance, cell BD1 has the value "J:\DGR\DGR_Reports\DGRReportSupportFiles\dsr20140102", so I assume that, if I have a cell somewhere else with the value "dsr20140102" that I can write a code similar to the one above to close it...I just don't know what that would be.
Any ideas?
Thanks!
I am able to open the file I want using this:
Code:
Workbooks Range("bd1").Value & ".csv"
But how do I then close it later on?
If I understand how this works correctly, I need the full filepath to open a file (i.e. the value of cell BD1), but only the book name to close it, right?
In this particular instance, cell BD1 has the value "J:\DGR\DGR_Reports\DGRReportSupportFiles\dsr20140102", so I assume that, if I have a cell somewhere else with the value "dsr20140102" that I can write a code similar to the one above to close it...I just don't know what that would be.
Any ideas?
Thanks!