DeutchBose
Board Regular
- Joined
- Mar 22, 2004
- Messages
- 83
Is there a way to open an Excel spreadsheet through a module in Access?
Sub Test()
Dim RetVal
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, "MyTestQuery", "C:\MyTest.xls"
RetVal = Shell("Excel.exe MyTest.xls", vbNormalFocus)
End Sub