daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Jun 18th, 2018 170 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top