Help!

printer name

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming VBA RSS
Next:  favorite folders  
Author Message
Candace
External


Since: Apr 20, 2006
Posts: 33



PostPosted: Mon Apr 27, 2009 6:39 am    Post subject: printer name
Archived from groups: microsoft>public>outlook>program_vba (more info?)

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.
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Mon Apr 27, 2009 10:03 am    Post subject: Re: printer name [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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" <Candace.TakeThisOut@discussions.microsoft.com> 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.
>
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming VBA All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum