Macro to export report to Word by grouped variable

S

sjSQW

I have a multipage report which repeats for each organisation using a 'group
on' setting. Now I want to export the report to Word in such a way that a new
document is created for each organisation - rather than a single document
with the reports for all organisations, which is the default.

The way I imagine that this can be done is to write a macro that selects
each organisation in turn in the underlying query (or table), and for each
organisation it then exports the report, using the organisation name as the
document file name.

The trouble is, I don't know how to write the code to do this. Can anyone
help?
 

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

Top