deibel
asked on
outlook 2010 print sent emails
Hello Experts
i want to print all the sent emails but i can only setup rules for incoming email.
i have a vbscript that doesent work. Can anybody tell me whats wrong with my script for printing sent mails
Dim WithEvents SentMailItems As Outlook.Items
Private Sub Application_Quit()
Set SentMailItems = Nothing
End Sub
Private Sub Application_Startup()
Set SentMailItems = Application.GetNamespace(" MAPI").Get DefaultFol der(olFold erSentMail ).Items
End Sub
Private Sub SentMailItems_ItemAdd(ByVa l Item As Object)
Item.PrintOut
End Sub
i want to print all the sent emails but i can only setup rules for incoming email.
i have a vbscript that doesent work. Can anybody tell me whats wrong with my script for printing sent mails
Dim WithEvents SentMailItems As Outlook.Items
Private Sub Application_Quit()
Set SentMailItems = Nothing
End Sub
Private Sub Application_Startup()
Set SentMailItems = Application.GetNamespace("
End Sub
Private Sub SentMailItems_ItemAdd(ByVa
Item.PrintOut
End Sub
ASKER
yes... macros are enabled and all code is in thisOutlookSession module
there is no promt after i add your code
there is no promt after i add your code
Okay then ... macros are disabled.
File | OPtions | Trust Centre | Macro settings.
Enable macros ... signed project or unsigned you may need to enable all.
Chris
File | OPtions | Trust Centre | Macro settings.
Enable macros ... signed project or unsigned you may need to enable all.
Chris
ASKER
ok.. all macros are now enabled... the print window pops up.
can i print without the printer window coming up... like the fast print button? so no user interaction is required
can i print without the printer window coming up... like the fast print button? so no user interaction is required
Not that I am aware of.
Chris
Chris
Ducking from suppressing teh display to bypassing it the following may help ... haven't had time to test it though:
http://www.mrexcel.com/forum/showthread.php?t=13057
Chris
http://www.mrexcel.com/forum/showthread.php?t=13057
Chris
ASKER
how do i need to implement that code in thisOutlookSession? if i just copy/paste it doesent work
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
At least that will be one cause identified.
Also no offfence but is all the the code in thisOutlookSession module?
Chris
Open in new window