Solved

Printer dialogue in a mail merged document from access

Posted on 2015-01-29
1
129 Views
Last Modified: 2015-01-29
For mail merging I am using following code:

    Set WWapp = CreateObject("Word.Application")
    Set WWdoc = WWapp.Documents.OPEN(dok & ".dotx")
    WWapp.Visible = True
    With WWdoc
        .MailMerge.MainDocumentType = wdFormLetters
        .MailMerge.OpenDataSource name:=dok & ".txt"
        .Application.Dialogs.Item(88).Display
        .MailMerge.Destination = wdSendToPrinter
        .MailMerge.Execute
    End With


The problem is, that in the dispalying printer dialogue I can change the printer only. All other manual settings including the cancel button will be ignored. How can I solve it?

Thank you very much.
0
Comment
Question by:User2008
1 Comment
 
LVL 50

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 40577061
Hi,

the cancel problem is resolved by

Res = .Application.Dialogs.Item(88).Display
If Res = 0 Then Exit Sub

Regards
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question