Microsoft
Software
Hardware
Network
Question : Closing Excel after exporting data from Access
I have an easy bit of code that is attached to a button on a form. It populates an excel spreadsheet with data from my query. After it runs and does this, I would like for it to close the Excel spreadsheet. The user does not even have to see the spreadsheet, it could happen invisibly (but does not have to). Is there an easy way to close excel after this code runs?
Code Snippet:
1:
DoCmd.OutputTo acOutputQuery, "ErisaQ", acFormatXLS, "C:\StarrDatabase\Erisa.xls", True
Open in New Window
Select All
Answer : Closing Excel after exporting data from Access
this will create the excel file without opening excel
DoCmd.OutputTo acOutputQuery, "ErisaQ", acFormatXLS, "C:\StarrDatabase\Erisa.xl
s"
Random Solutions
How to setup All Users Shortcut to run in Windows 95 compatibility mode for Terminal Services on Server 2003
How important is 'domain age' in google rankings.
#VALUE! error in Excel 2007
Is there a better way to write formula than use a nested if statement?
How many parameters can we give in Raiserror method?
Monitoring database file growth
How to create Photography Database For Clients ? Software etc...
No visual with FLVplayback component only sound when using AS
Cannot access remote pc, because wrong username or password is saved
Registry Restore