View Single Post
  #8   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Checkboxes on mailmerge recipients list

Do you know a way to /close/ the Recipients dialog programmatically?

No, unless you can either get sendkeys to work (which I can't, here), or do
the equivalent of sendkeys using the Win32 API.

Many of the older Word dialog boxes have properties and methods that allow
you to manipulate them without displaying them at all. However, the newer
and more complicated boxes either do not have such properties, or if they
do, they are not documented anywhere.
--
Peter Jamieson
http://tips.pjmsn.me.uk

"Steffen Grellmann" wrote in message
...
Hi Peter,

thank you for replying.

Do you know a way to /close/ the Recipients dialog programmatically?
This could be an - unpleasant - workaround, to open/close the dialog
before executing my own code.

I knew there was a reason why I never manipulated .Included but I had
forgotten what it was.


It calms me down a little bit that I'm not the only one...

I get exactly the same thing here. I can't think of a
way around it - even performing a merge to a new document does not
magically
create the .included objects.


I've tried this also like some other things, with no success.

You can trap the error when you test .Included. I suppose that is enough
to
tell you that all the records must be included (because the user has not
looked at the Recipients dialog box) but I can't see how you can get Word
to
create these objects without showing the dialog.


I will see if I can find out anything more about this.


And I will post it here if there are any news from my side.

Kind regards,

Steffen