Problem using rules wizard script

R

Ralf Meuser

Hi there

I'm have a problem using rules wizard script with outlook 2003 on a windows
xp.
I have got the follwoing code from the microsoft site:

Sub CustomMailMessageRule(Item As Outlook.MailItem)
MsgBox "Mail message arrived:" & Item.Subject
End Sub

In Outlook I activated the editor with Alt F11
and add this text in Project1 - Microsoft Outlook - ThisOutlookSession

After this I created a rule checking the subject and excute the script
CustomMailMessageRule.

I restarted Outook and even the PC but the script doesn't come up. What did
I miss ?

Thanks in advance for any help

Ralf
 
P

Patrick Reed [MVP - Outlook]

Did you sign the code?

C:\Program Files\Microsoft Office\Office11\

Run SelfCert.exe to create a personal certificate for code-signing.

In Outlook, open VBA editor and select Tools | Digital Signature | Choose

Save the project and Exit Outlook. Select Yes if prompted to save the
project.

Restart Outlook. Send yourself a test message. If prompted, select the
option to always trust macros from this source | Enable Macros.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top