printer name

Status
Not open for further replies.
Q

Q2FuZGFjZQ

Can someone tell me what code belongs between the two statements below in

order to print an email to a printer called MyPrinter?

Sub PrintToMyPrinter()

End Sub

I am going to assign this code to a button and put it on an Outlook toolbar.

I am told that anything that can be done with menu choices can be done in

code. Essentially this is what I would be doing if I were to use the menu

options:

--> File menu

--> Print submenu

--> use drop-down list to change the printer name to "MyPrinter"

--> click OK

However, this is cumbersome even if I only do it once a day. Changing the

Windows default printer is not an option.
 
K

Ken Slovak - [MVP - Outlook]

There's nothing in the Outlook object model for that, and no access to that

dialog settings.

"Candace" <Candace> wrote in message

news:6D459188-737B-44F0-BD81-B7E40E9B7585@microsoft.com...
> Can someone tell me what code belongs between the two statements below in
> order to print an email to a printer called MyPrinter?
> Sub PrintToMyPrinter()

> End Sub

> I am going to assign this code to a button and put it on an Outlook
> toolbar.
> I am told that anything that can be done with menu choices can be done in
> code. Essentially this is what I would be doing if I were to use the menu
> options:
> --> File menu
> --> Print submenu
> --> use drop-down list to change the printer name to "MyPrinter"
> --> click OK

> However, this is cumbersome even if I only do it once a day. Changing the
> Windows default printer is not an option.
>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
D Body text of email disappears when I scan an attachment from printer to email Using Outlook 1
E Outlook VBA to print attached Pdf to a fax printer and assign fax number Using Outlook 0
S Nor printing to Epson printer Calendar Printing Assistant 3
K Printing Rule to Other than default printer Using Outlook 2
K When printing an email the printer goes to manual feed every time. How do I disable this in Office Using Outlook 2
C Dot Matrix Printer: When I try to print a mailing label the printer button is greyed out. I have the label printer as my default. I have the correct Using Outlook 1
S Outlook Printer Problem with Lexmark 205 wireless Printer__ Using Outlook 3
I Default printer Outlook 2010 memo style Using Outlook 4
U Outlook 2016 Outlook 2016 sender name Using Outlook 1
C Macro to extract sender name & subject line of incoming emails to single txt file Outlook VBA and Custom Forms 3
D Outlook 2010 Outlook in Windows 10 keeps asking for user name and password repeatedly Using Outlook 14
glnz O365 - How to control whether my From name shows as "Dicky". Using Outlook 1
glnz O365 - How to send from acct 2 but showing email name from acct 1 as From - alias? Using Outlook 1
Terry Sullivan Sender's Name Doesn't Appear in the From Field on Outlook 365/IMAP Using Outlook 2
Terry Sullivan Sender Field Displays My E-Mail Address, Not My Name Using Outlook 1
L Email with correct To address but displaying name of a related person Using Outlook 0
M Automatically add senders first name to a greeting Outlook VBA and Custom Forms 1
D Is a sub folder under contacts necessary to be able to name an Address Book? Using Outlook 1
icacream Enter your user name and password for the following server. Using Outlook 5
B Extracting email addresses from a folder - how to also get the name of the person the address is for? Using Outlook 5
I Saving attachments from multiple emails and updating file name Outlook VBA and Custom Forms 0
D Add date next to day name in Outlook Today calendar view Using Outlook 1
J Is it no longer possible to suppress Outlook 2019 Invalid Certificate name mismatch security alert via Registry? Using Outlook 1
R Search/Jump to a folder by typing its name Outlook VBA and Custom Forms 1
C Outlook Autocomplete suggestions showing wrong person's name against an email address Using Outlook 0
Nadine Rule to move attachments with specific name Outlook VBA and Custom Forms 1
geofferyh How to change the Attachment File Name? Outlook VBA and Custom Forms 1
B Looking to get the Recipient email address (or even the "friendly name") from an email I am replying to using VBA Outlook VBA and Custom Forms 4
J VBA Outlook : Subject line : Cut and Paste name to heading , number to very end of the body of Email Outlook VBA and Custom Forms 1
CWM030 Name Server's Exchange Server Administration 15
CWM030 Name Change? Exchange Server Administration 9
W Save and rename outlook email attachments to include domain name & date received Outlook VBA and Custom Forms 4
V not able to change name in customize Ribbon Outlook VBA and Custom Forms 1
C Changed By field not displaying individual user's name in O365 Shared Mailbox Using Outlook 9
I How to display sender's name instead of email address in outlook 2013 message Using Outlook 5
L Automatically Insert Recipient Name from To Field Outlook VBA and Custom Forms 33
soadfan Outlook rules look up display name only Using Outlook 4
J reinstalling Outlook 2007 asking for user name & password Using Outlook 14
J Outlook Rules - Changing auto-submit address in multiple rules, according to rule name Outlook VBA and Custom Forms 0
A saving attachement to folder named the same as rule name Outlook VBA and Custom Forms 0
D Inserting sender name and address with vba Outlook VBA and Custom Forms 1
A Error: The name cannot be matched to a name in the address list Using Outlook.com accounts in Outlook 0
tjd189 outlook 2016 name change Using Outlook 1
D Office365 Conference Room name change? Using Outlook 5
Vijay Reply all by attachment name Using Outlook 10
Michael R Belleville Making an Attachment Name the Message Subject Using Outlook 2
R Macro to check file name with outlook address book Outlook VBA and Custom Forms 0
C Changing the name of Outlook Messages saved to a folder Using Outlook 1
C Auto subject,name,email,deferred Using Outlook 2
D Change sender name outlook vba 2010 Custom Userform Outlook VBA and Custom Forms 1

Similar threads

Top