Re: Perform a Basic Toolbar Task with VBA
- From: "Sue Mosher [MVP-Outlook]" <suemvp@xxxxxxxxxxxxxxx>
- Date: Wed, 4 May 2005 16:50:14 -0400
Exactly. You can't automate the rules wizard. Instead, you would need to write code using Outlook objects to perform the same task that your rule performs. If you tell us what that task is, we might be able to point you toward some sample code.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"RobC" <rjc@xxxxxxxxxxx> wrote in message news:_aaee.30748$716.22551@xxxxxxxxxxxxxxxxxxxxxxxxxx
> Sue, I write VB code for Excel and Visio and basically when I can't figure
> out how to do something, I use the record Macro which doesn't exist in
> Outlook and just new in Visio 2003. I was just trying to write a simple
> shortcut and asign it to a button and looking at the Object Model didn't
> see anything that resembled that part of the application. Tons to so with
> Mail, Appointments, Calendar etc... but nothing under "Tools" in the App.
> Thanks, Rob
>
> "Sue Mosher [MVP-Outlook]" <suemvp@xxxxxxxxxxxxxxx> wrote in
> news:##QZ5QOUFHA.2768@xxxxxxxxxxxxxxxxxxxx:
>
>> Outlook rules can't be run programmatically. Your toolbar button would
>> need to run an Outlook VBA macro (which you would have to write).
>>
>
.
- Follow-Ups:
- Re: Perform a Basic Toolbar Task with VBA
- From: RobC
- Re: Perform a Basic Toolbar Task with VBA
- References:
- Perform a Basic Toolbar Task with VBA
- From: RobC
- Re: Perform a Basic Toolbar Task with VBA
- From: Sue Mosher [MVP-Outlook]
- Re: Perform a Basic Toolbar Task with VBA
- From: RobC
- Perform a Basic Toolbar Task with VBA
- Prev by Date: Re: Perform a Basic Toolbar Task with VBA
- Next by Date: Re: Open User Form from Template and populate message
- Previous by thread: Re: Perform a Basic Toolbar Task with VBA
- Next by thread: Re: Perform a Basic Toolbar Task with VBA
- Index(es):