Avatar of Jeff McClellan
Jeff McClellanFlag for United States of America

asked on 

Use a script in Outlook. Scripts not showing up in rules wizard.

I want to make an Outlook Rule that runs a script.  


I have two scripts in VisualBasic, saved in Module1  (also tried saving them in This OutlookSession).


Sub Test() and Sub SaveEmailAttachmentsToFolder.

User generated image


When I create the rule, and select run a script, I get a blank box for Select Script. Neither Macro shows.  What am I missing?

User generated image

Outlook

Avatar of undefined
Last Comment
Qlemo
Avatar of Qlemo
Qlemo
Flag of Germany image

Add a "public" prefix to the subs you want to be able to call:
Private Sub Test()

Open in new window

You won't see subs having (mandatory) parameters in the Script or Macro list.
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Qlemo
Qlemo
Flag of Germany image

Bill is correct, I forgot to check you need the MailItem parameter.
Outlook
Outlook

Microsoft Outlook is a personal information manager from Microsoft, available as a part of the Microsoft Office suite. Although often used mainly as an email application, it also includes a calendar, task manager, contact manager, note-taker, journal, and web browser.

105K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo