Calling Export Wizard from VBA

Blueskies

Registered User.
Local time
Today, 08:47
Joined
Oct 23, 2009
Messages
69
Hi

Can the Export Wizard be called from a VBA module? (I imagine it could be done by sendkeys, but I don't want to go there.....)

It would be great if I could pass it the name of a query I want to export as Excel, and then have the wizard take over from there.

Thanks for reading.
 
No worries - found it:


Code:
DoCmd.RunCommand acCmdExportExcel
 
Hi. You could try using either the RunCommand method, which could start the Wizard or the OutputTo method, which could prompt the user for the format and filename.
 
Thanks for reply - great to know you can get help on these forums!
 
PMFJI, but if the export is the same filename and format, etc, you might what to look into saved exports...
 

Users who are viewing this thread

Back
Top Bottom