View Single Post
  #2  
Old July 12th 07, 08:11 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How Do I Button?

Is this just for yourself? If so go with a VBA macro. If it's for
distribution then VBA is not the way to go.

VSTO is nice and interesting to work with but is a bear to get everything
just right, is limited to Office 2003 Professional or above and Office 2007
and if you support the ribbon then the code has to be developed on an
Outlook 2007 machine with VSTO 2005 SE installed. Deploying VSTO addins can
be done but is a bear to get everything exactly right, especially the
installer custom actions in SetSecurity that are needed to get the managed
code to set security correctly and be able to run.

For Outlook 2007 in an open email you would really want to handle the ribbon
unless you want to use a CommandBarButton and have it stuck in the AddIns
tab. Unfortunately if you want to do ribbon code you must use an addin, VBA
cannot be used for Outlook ribbon code.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Todd Walton" wrote in message
ups.com...
I need to create a special button in Outlook 2007. When clicked it
should rewrite the subject header of the email being composed, and
then send the email. Which way should I be headed?

I was looking into VSTO for a while, but someone said it's still a
little unstable and I can't seem to find many books on it anyway.
Every book on Outlook programming in my local Borders talks
exclusively about VBA and doesn't even *mention* VSTO. So maybe I
should go with VBA?

Would this be a macro thing? Create a macro written in VBA? I think
I read somewhere that you can make a button that activates a macro.

Where's my square one?

-todd


Ads