Send Report to Word file through VBA

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible in VBA to execute a report, and save it to a word or Excel
file ? I know this can be done through the user interface.
 
rmcompute said:
Is it possible in VBA to execute a report, and save it to a word or
Excel file ? I know this can be done through the user interface.

You can get the same functionality by using DoCmd.OutputTo. You'll find
the details in the online help. You can't actually save to a Word .doc
file, but you can save to a .rtf (rich text format) file, which
preserves much of the formatting of the report. It won't include lines,
boxes, or graphics, though.
 
Thank you.

Dirk Goldgar said:
You can get the same functionality by using DoCmd.OutputTo. You'll find
the details in the online help. You can't actually save to a Word .doc
file, but you can save to a .rtf (rich text format) file, which
preserves much of the formatting of the report. It won't include lines,
boxes, or graphics, though.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top