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 - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2002 Rules Wizard



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old August 21st 06, 06:21 PM posted to microsoft.public.outlook.general,microsoft.public.outlook.program_forms
Conan Kelly
external usenet poster
 
Posts: 12
Default Outlook 2002 Rules Wizard

Sue,

Thank you so much for your help. I will try this out and see if it will work for me.

What I'm trying to do is set up a script that will automatically forward an incoming email sent with a custom email form to a
standard email form filling in the To, Subject, and Message Body fields with the values that are in different custom fields from the
custom form. I'm still working on the design of the form, but if any body has any example code to get me started, I would
appreciated very much. I can probably figure it out on my own, but if some one is willing to give me a jump-start, it would
definitely take less time.

Thanks again for all of your help,

Conan


"Sue Mosher [MVP-Outlook]" wrote in message ...
No, it's something that can be used in conjunction with OUtlook VBA. A "run a script" rule action actually uses not an external
script but a VBA procedure with a MailItem or MeetingItem as its parameter. That item is processed by the code:


Sub RunAScriptRuleRoutine(MyMail As MailItem)
Dim strID As String
Dim olNS As Outlook.NameSpace
Dim msg As Outlook.MailItem

strID = MyMail.EntryID
Set olNS = Application.GetNamespace("MAPI")
Set msg = olNS.GetItemFromID(strID)
' do stuff with msg, e.g.
MsgBox msg.SUbject

Set msg = Nothing
Set olNS = Nothing
End Sub

See http://www.outlookcode.com/d/code/zaphtml.htm#ol2002 for another example.


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Conan Kelly" CTBarbarin at msn dot com wrote in message ...
Hello all,

In Outlook 2002's Rules Wizard's "What do you want to do with the message?" list, I notice a "run a script" option. When I select
this option, there are no scripts listed in the Select Script dialog box.

Is this something that can only be used in conjunction with MS Exchange? If not, how do I create scripts and where do I store
them?

Thanks for any help anyone can provide,

Conan Kelly




 




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
i need help with rules wizard paralegal Outlook - Installation 0 August 3rd 06 07:13 PM
rules wizard needs ability to select all rules TxFiberTrainer Outlook - Installation 0 May 23rd 06 09:55 PM
Rules Wizard p Outlook - General Queries 2 February 12th 06 05:16 PM
Outlook 2000 - no Rules Wizard Syd Spence Outlook - General Queries 1 January 23rd 06 12:26 PM
Outlook Rules Wizard simon w Add-ins for Outlook 0 January 10th 06 05:20 PM


All times are GMT +1. The time now is 08:51 PM.


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.