View Single Post
  #2  
Old April 26th 06, 04:37 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default VBA Scripts Do Not Show Up As "Custom Actions"

Wrong rule action. The rule action you want is "run a script" not "custom action."

--
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

wrote in message oups.com...
I have a simple procedure in ThisOutlookSession:

Sub MarkRead_CustomAction(Item As Outlook.MailItem)
Item.UnRead = False
Item.Save
End Sub

When I create a rule and click on "custom action," my subroutine
MarkRead_CustomAction is not an option. In fact, there are no options.
Even if I save the VBA and close and reopen Outlook, I still don't have
any custom actions as options.

When I go to Tools--Macros, I do get a "Security Warning" and I have
to select "Enable Macros." For Macros that need access to the Address
Book, I need to further click 'yes' (although the procedure above
obviously does not access the Address Book). Even after "Enablinng
Macros," I still have no options in the "custom action" dialog.

Any ideas why this isn't working?

I first raised this issue in this thread:

http://groups.google.com/group/micro...47ecdedbf006fa

But I did not find any solutions, so I thought I would raise it here as
a separate thread.

Thanks for any suggestions.

Ads