I am using a .bat file to call a workbook -- it will run a macro, and then close.
The .bat file works fine and is simply:
In the spreadsheet, I have
Everything runs fine. The only issue I have is that after the workbook closes - the excel application still exists -- how can I close this (either from excel or the batch file)...
Thanks.
Dave
The .bat file works fine and is simply:
Code:
call C:\test.xls
In the spreadsheet, I have
Code:
Private Sub Workbook_Open()
Call macro1
Call workbook_close
End Sub
Private Sub workbook_close()
ActiveWorkbook.Close savechanges:=True
End Sub
Everything runs fine. The only issue I have is that after the workbook closes - the excel application still exists -- how can I close this (either from excel or the batch file)...
Thanks.
Dave