A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

printer name



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 27th 09, 02:39 PM posted to microsoft.public.outlook.program_vba
Candace
external usenet poster
 
Posts: 7
Default printer name

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.

  #2  
Old April 27th 09, 03:03 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default printer name

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

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Candace" wrote in message
...
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.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Printer message IowaRose Outlook - Installation 2 October 1st 08 05:34 PM
Printer margins David Robinson Outlook Express 2 April 19th 08 11:55 AM
Printer Joel Allen Outlook and VBA 1 September 29th 06 10:29 PM
printer khalifa alshaikh Outlook - General Queries 1 May 22nd 06 07:02 AM
printer khalifa alshaikh Outlook - General Queries 1 May 11th 06 03:17 AM


All times are GMT +1. The time now is 05:13 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.