![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |