RE: STILL IS NOT AVAILABLE... Run A Script not listed in rules wizard
- From: Alan Moseley <AlanMoseley@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 7 Jul 2009 02:30:01 -0700
If your script is written within Outlook VBA then it should be possible to
write your code so that the warnings do not appear. Do you have any lines of
code similar to:-
Set objOutlook = New Outlook.Application
or
Set objOutlook = CreateObject("Outlook.Application")
If so then try changing this to:-
Set objOutlook=Outlook
If you then create further objects from this, such as:-
Set objNamespace = Outlook.GetNameSpace("MAPI")
Set objContacts = objNamespace.GetDefaultFolder(olFolderContacts).Items
and so on, you will prevent the security warning from being shown as
'Outlook' is an in-built object that picks up a reference to the currently
running Outlook application.
If you need any further assistance then post your code and I will see what
needs changing.
--
Alan Moseley IT Consultancy
http://www.amitc.co.uk
If I have solved your problem, please click Yes below. Thanks.
"laavista" wrote:
I went through the steps you outlined multiple times, and there's no "run a.
script" rule. I wonder if my company "turned off" this option?
I was hoping to use this as the VBA procedure I wrote results in the Outlook
Security Warning and is useless because of the warnings (my user would have
to click 'yes' 400+ times a month). I thought by using the RunAScript rule
it may prevent the warnings.
Thanks for responding.
"Alan Moseley" wrote:
In Rules and Alerts click New Rule
Click 'Start From A Blank Rule' and choose a Step 1 option. Click Next
Select one or more conditions and click 'Next'
Under Select Action you should see an option for 'Run A Script', check it
and click on the 'a script' hyperlink in the bottom window.
Choose the script that you wish to run.
Continue the remainder of the wizard.
--
Alan Moseley IT Consultancy
http://www.amitc.co.uk
If I have solved your problem, please click Yes below. Thanks.
"laavista" wrote:
I'm using Outlook 2003. I purchased an Outlook VBA book, and it shows
examples of using the rules wizard "run a script". I do not see this option
when I go into rules, and I would really like to use it.
Any suggestions?
Thanks, in advance, for your help.
- Follow-Ups:
- References:
- Run A Script not listed in rules wizard
- From: laavista
- RE: Run A Script not listed in rules wizard
- From: Alan Moseley
- STILL IS NOT AVAILABLE... Run A Script not listed in rules wizard
- From: laavista
- Run A Script not listed in rules wizard
- Prev by Date: Re: Run script rule not exectued for first few mails
- Next by Date: RE: trap outbound mail to update subject
- Previous by thread: Re: STILL IS NOT AVAILABLE... Run A Script not listed in rules wizard
- Next by thread: RE: STILL IS NOT AVAILABLE... Run A Script not listed in rules wiz
- Index(es):
Relevant Pages
|