[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Printer dialogue in a mail merged document from access

Posted on 2015-01-29
1
Medium Priority
?
144 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 54

Accepted Solution

by:
Rgonzo1971 earned 2000 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
If you’re using QODBC to update QuickBooks data from Microsoft® Access but Access is not showing the updated data, you could have set up QODBC incorrectly.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

834 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