A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to: Create a routine which forwards email



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Routine for setting de permissions for all underlaying folders Guus Outlook and VBA 3 October 4th 06 03:38 AM
terminate the routine if outlook is not available fitful_thought Outlook and VBA 2 April 27th 06 10:27 PM
terminate the routine if outlook is not available fitful_thought Outlook - General Queries 1 April 26th 06 03:01 PM
Outlook calendar should allow colouring days to follow a routine MartinD Outlook - Calandaring 1 April 14th 06 07:24 AM
Signature on Forwards as Attachments Sabrina Outlook - General Queries 2 April 10th 06 07:21 PM


All times are GMT +1. The time now is 08:17 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.