Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
to export the select query data to excel file in VBA code you can use DoCmd.OutputTo or DoCmd.TransferSpreadShet method. Ok, you can use both types as a macro action too. In my applications I'm using both versions. In one of my programs I have to transfer the data every night to the same excel file. Because of the fact that the file of the fixed name has been existing from the previous night Access program always notices me about that and asks me to overwrite the file. I don't find any argument (parameter) in either of methods to demand default overwriting. I want to avoid to click all the times, so I want to automate the overwriting. Is there really the only solution to delete the excel file first and only then export the query data to the file, which will be new created? Or did I overlook any fact? Ivan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using MS Query with Excel and Access 2007 | Excel Discussion (Misc queries) | |||
Excel 2007 - Query MS Access DB | Excel Discussion (Misc queries) | |||
Excel 2007 Query Wizard problem with Access 2007 extensions | Excel Discussion (Misc queries) | |||
Import Access query to Excel 2007 | Excel Discussion (Misc queries) | |||
Export to Access, Workbook Treated as a Query Response | Excel Discussion (Misc queries) |