- Joined
- Jul 6, 2005
- Messages
- 11
- Reaction score
- 0
I am running a query in Access 2003 via VB Code DoCmd.OpenQuery and AcPreview. Its fine.
Occasionally I then manually use Office Tools Publish in Microsoft Excel to display in a spreadsheet.
How can I run the query and get it to automatically display the result in Excel via VB code. I DONT need to save the spreadsheet I just want it displayed on screen but dont want to have to select Office Tools etc.
OutputObject is not what I want as this creates a spreadsheet but does not then display it.
Thanks
Occasionally I then manually use Office Tools Publish in Microsoft Excel to display in a spreadsheet.
How can I run the query and get it to automatically display the result in Excel via VB code. I DONT need to save the spreadsheet I just want it displayed on screen but dont want to have to select Office Tools etc.
OutputObject is not what I want as this creates a spreadsheet but does not then display it.
Thanks