Guest User

Untitled

a guest
Jun 18th, 2018
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Dim WithEvents objInbox As Outlook.Items
  2.  
  3. Private Sub Application_Startup()
  4. Set objInbox = Session.GetDefaultFolder(olFolderInbox).Items
  5. End Sub
  6.  
  7. Sub SnagAttachment(theItem As MailItem)
  8. On Error Resume Next
  9. Dim fnum As Integer
  10. fnum = FreeFile()
  11. Open "c:tempsuccess.txt" For Output As #fnum
  12. Print #fnum, "Ran SnagAttachment Successfully"
  13. Close #fnum
  14. End Sub
Add Comment
Please, Sign In to add comment