Solved

How do I get the results of the Excel VBA printer dialog box?

Posted on 2011-09-20
5
269 Views
Last Modified: 2012-05-12
Hi - I was wondering how do I retrieve the printer selected by the user in the excel vba printer dialog box (Application.Dialogs(xlDialogPrint).Show)?

There are multiple reports to print out and I only want the user to have to select the printer once.

Thanks - Zack
0
Comment
Question by:zack4x4
  • 3
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
jason987 earned 500 total points
ID: 36568615
Application.ActivePrinter  seems to be what you are looking for.
0
 
LVL 4

Author Comment

by:zack4x4
ID: 36568704
Does that change if the user selects a different printer in the dialog box?
0
 
LVL 5

Expert Comment

by:jason987
ID: 36568726
Yes, if they had selected the printer and hit "ok".
0
 
LVL 5

Expert Comment

by:jason987
ID: 36568735
I don't know the exact point in which it updates the variable.  As in I don't know if as they are scrolling though them if it changes.
0
 
LVL 4

Author Closing Comment

by:zack4x4
ID: 36569401
Thanks!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

770 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