
12-05-2009, 07:45 PM
|
|
Newcomer
|
|
Join Date: Nov 2009
Posts: 6
|
|
|
you will need the excel reference library in the vba editor first of all. then, check out the workbook object and application object in excel with the intellisense dropdown in vba. you probably need to use the CLOSE action of the workbooks collection (of the application object). you may need to supply the full directory of the file name you want to close.
if that doesn't work, it is possible that you may need to have opened the workbook in vba in order to close it, but i seriously doubt that is the case.
|
|