Re: Hide dialogs on mailmerge
- From: "zSplash" <zNOSPAMSplash@ gci.net>
- Date: Tue, 25 Apr 2006 08:19:01 -0800
Thank you, Peter, for your help.
The system is very simple, so the method always work (hopefully (!)) --
(there's a built-in loop such that if there is not enough info, it loops to
find it), so it ALWAYS has enough data to merge. I hear you saying there's
no way to turn off the dialogs. (Rats!)
st.
"Peter Jamieson" <pjj@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:OcMWoNDaGHA.4916@xxxxxxxxxxxxxxxxxxxxxxx
Not sure which particular problem you are encountering.result
Is the DataSource dialog appearing when you execute the
ActiveDocument.MailMerge.DataSource.Name = ""
line (it doesn't here if there is no mail merge data source) or as a
of code in your MergeSetup routine?at
I would say the main point is that once you call OpenDataSource, you are
the mercy of the method and if it chooses to display a dialog box, youwon't
be able to suppress it (except possibly by working directly with theWindows
API). The only way to avoid that is to ensure that the method alwaysworks,
i.e. the data source is always where you say it is, there are never anyto
"gotchas" opening it, and the OpenDataSOurce always provides enough info.
avoid the dialog. IMO that is in the general case impossible, not least
becasue with some types of data source, you can't avoid a dialog.
You may also need to look at the following KB article:
"Opening This Will Run the Following SQL Command" Message When You Open a
Word Document"
at
http://support.microsoft.com?kbid=825765
Peter Jamieson
"zSplash" <zNOSPAMSplash@ gci.net> wrote in message
news:ezNswC9ZGHA.5000@xxxxxxxxxxxxxxxxxxxxxxx
How do I hide the DataSource dialog and the Header dialog on mail merge?
For example, when the following code runs, I don't want to see it:
If ActiveDocument.MailMerge.DataSource.Name = "" Then
MergeSetup
GoTo getDataSource
End If
TIA
.
- Follow-Ups:
- Re: Hide dialogs on mailmerge
- From: Peter Jamieson
- Re: Hide dialogs on mailmerge
- References:
- Hide dialogs on mailmerge
- From: zSplash
- Re: Hide dialogs on mailmerge
- From: Peter Jamieson
- Hide dialogs on mailmerge
- Prev by Date: No longer able to print labels using Works 4
- Next by Date: Re: Hide dialogs on mailmerge
- Previous by thread: Re: Hide dialogs on mailmerge
- Next by thread: Re: Hide dialogs on mailmerge
- Index(es):