[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Printer dialogue in a mail merged document from access

Posted on 2015-01-29
1
Medium Priority
?
142 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 53

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

649 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