Its not really a monitor function. It is more code that you can run once it is decided that you do want to process something in your mailbox.


By the way, if you know that the user has selected the item in Outlook that you want to process, it can be MUCH simpler to do something like:
VB Code:
  1. Dim myOlSel As Outlook.Selection
  2. Dim olExp, olCurrentFolder
  3. Dim x As Integer
  4.  
  5.     Set olExp = Outlook.ActiveExplorer
  6.     Set olCurrentFolder = olExp.CurrentFolder
  7.     MsgBox “Folder “ & olCurrentFolder & _
  8.         “ has “ & olCurrentFolder.Items & “ items in it”
  9.     Set myOlSel = olExp.Selection
  10. ‘ Get the subject
  11. ‘  modify the subject in the message, and save the changes
  12.    For x = 1 To myOlSel.Count
  13.         thisSubject = CheckSubject(myOlSel.Item(x).Subject)
  14.         MyOLSel.Item(x).Subject = “FILED – “ & thisSubject
  15.         MyOLSel.Item(x).Save
  16.     Next x

Or you should be able to go straight to the Inbox with something like:
VB Code:
  1. Dim oOutlook As New Outlook.Application
  2. Dim oNameSpace As NameSpace
  3. Dim myItems As Items
  4.  
  5. Set oNameSpace = oOutlook.GetNamespace("MAPI")
  6. Set myItems = oNameSpace.GetDefaultFolder (olFolderInbox).Items
  7. Call LookThroughFolder(myItems)