Link to home
Start Free TrialLog in
Avatar of Blueice13085
Blueice13085Flag for United States of America

asked on

outlook Print

I need outlook to auto print pdf attachments for incoming email. I know there is software I can buy, but the cost are high! got to be a way to make a vba or macro? some add-in something out there??
ASKER CERTIFIED SOLUTION
Avatar of krish5music
krish5music
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Blueice13085

ASKER

There is a error in this code? not sure what is wrong with it any ideas?

Sub MovePrintedMail(oMail As Outlook.MailItem)
  Dim objDestFolder As Outlook.MAPIFolder
 
   Set objDestFolder = Session.Folders("mailbox name")._
     Folders("Inbox").Folders("Printed")
 
     oMail.Move objDestFolder 
    
  Set objDestFolder = Nothing
End Sub

Open in new window




The error highlights
 Set objDestFolder = Session.Folders("mailbox name")._