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??
Blueice13085Asked:
Who is Participating?
 
Blueice13085Author Commented:
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")._
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.