This is probably easy but it is giving me fits. I have some simple code that transfers an Access table to Excel. Now, I need to know how to close Excel. Obviously the code ActiveWorkbook.Close True doesn't work. I've tried defining the application, workbook and worksheet and tried .Close and .Quit and setting each to Nothing but nothing I seem to try works. My Access, Excel, DAO and Office references are all activated.
Here is the code (as basic as it may be):
Private Sub Form_Load()
DoCmd.OutputTo acOutputTable, "FINALR", acFormatXLSX, "C:\My Documents\WFPLAN.xlsx", True
End Sub
Here is the code (as basic as it may be):
Private Sub Form_Load()
DoCmd.OutputTo acOutputTable, "FINALR", acFormatXLSX, "C:\My Documents\WFPLAN.xlsx", True
End Sub