View Single Post
  #1  
Old January 9th 07, 08:12 PM posted to microsoft.public.outlook.program_vba
Ron
external usenet poster
 
Posts: 128
Default How to: Create a routine which forwards email

I know I can create a rule for this , but the mail subject is prepended with
fw:

So, I started out trying to write a routine which would look at email added
to the Inbox (I don't which event will trigger any of this), but immediately
got stuck wtih this:

Dim ThisEmail As Object
Dim ol As Object


Set ol = CreateObject("Outlook.Application")
Set ThisEmail = ol.ActiveInspector.CurrentItem error 91 object variable
not set

I assume I need the CurrentItem to retrieve the newest item in the Inbox (or
not???)

RON
Ads