A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

make outlook add-in from vba macros?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 16th 08, 08:11 PM posted to microsoft.public.outlook.program_addins
Mike Wilson[_2_]
external usenet poster
 
Posts: 2
Default make outlook add-in from vba macros?

I am in the process of making my first Outlook add-in and it would be really
great if you experts out there could point me in the right direction. Links
to good articles also appreciated!

What we have is basically a number of VBA macros that have evolved over
time. They are all reached through buttons in a toolbar of the Mail Message
window. We want to build a package to be able to install/uninstall all this
easily on other machines. What I have gathered so far is that I think we want
to make a COM add-in as we want to support everything from Outlook 2000 and
up.

So, my questions a

1) Is a COM add-in the right way to go? I understand the toolbar buttons may
be a challenge in 2007, but maybe there are some acceptable alternatives to
making a ribbon extension?

2) Can I keep coding in VBA/VB? I'm a long-time C++ programmer but not
having to port the current VBA codebase to another language/environment would
be great...

3) What's the most convenient way to make an installer for the add-in? I'd
also like the toolbar and buttons created at installation.

4) What developer tools do I need? Currently installed on my machine is
Office 2003 Professional, Visual Basic 6 and Visual C++ 6. (As always, it's
good if new license purchases can be kept to a minimum.)

Best regards
Mike Wilson
  #2  
Old May 19th 08, 10:06 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default make outlook add-in from vba macros?

A COM addin is definitely the way to go. Look at the COM addin articles at
www.outloocode.com, as well as using that as an excellent resource.

You should plan on having the oldest version of Office you intend to support
installed on your development machine. Only use methods, properties and
events that are exposed in Outlook 2000 if you intend to support that
version. If you need to use a method or property exposed in a later version
if it's available use late binding and check application.Version before
trying to use those properties/methods.

You can certainly use VB6, and I'd recommend against using managed code for
trying to support anything older than Outlook 2003. The VBA code can just be
pasted into the VB6 project.

Make sure your VB6 has the latest SP's and fixes. Also study the VB6 support
article for Vista at http://msdn.microsoft.com/en-us/vbrun/ms788708.aspx.

If you have Outlook 2007 you can download my Outlook 2007/VB6 template from
http://www.slovaktech.com/outlook_2007_templates.htm and use that as the
basis for your addin. Read the article at
http://xldennis.wordpress.com/2006/1...h-com-add-ins/
and get the tlb Dennis mentions and implement it in your connect class and
you can then handle the ribbon using the Outlook 2007 ribbon code in the
template.


You can use the deployment wizard to create a bloated deployment package
that installs every already installed dependency, but I wouldn't recommend
using it for installations on Vista. There's a simple version of
InstallShield (totally obsolete) in VS 6 Enterprise if you have that which
is better, but I wouldn't use that for Vista either. For Vista I'd use a
more up to date installer either from a later version of VS or a commercial
installer.

If you want to avoid the security prompts in Outlook 2000 and 2002 you might
need to use Redemption (www.dimastr.com/redemption) to work around them.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Mike Wilson" wrote in message
...
I am in the process of making my first Outlook add-in and it would be
really
great if you experts out there could point me in the right direction.
Links
to good articles also appreciated!

What we have is basically a number of VBA macros that have evolved over
time. They are all reached through buttons in a toolbar of the Mail
Message
window. We want to build a package to be able to install/uninstall all
this
easily on other machines. What I have gathered so far is that I think we
want
to make a COM add-in as we want to support everything from Outlook 2000
and
up.

So, my questions a

1) Is a COM add-in the right way to go? I understand the toolbar buttons
may
be a challenge in 2007, but maybe there are some acceptable alternatives
to
making a ribbon extension?

2) Can I keep coding in VBA/VB? I'm a long-time C++ programmer but not
having to port the current VBA codebase to another language/environment
would
be great...

3) What's the most convenient way to make an installer for the add-in? I'd
also like the toolbar and buttons created at installation.

4) What developer tools do I need? Currently installed on my machine is
Office 2003 Professional, Visual Basic 6 and Visual C++ 6. (As always,
it's
good if new license purchases can be kept to a minimum.)

Best regards
Mike Wilson


  #3  
Old May 19th 08, 10:42 PM posted to microsoft.public.outlook.program_addins
Mike Wilson[_2_]
external usenet poster
 
Posts: 2
Default make outlook add-in from vba macros?

"Ken Slovak - [MVP - Outlook]" wrote:
A COM addin is definitely the way to go. Look at the COM addin articles at

snip

Thanks for all the info Ken!
A peek at the links you provided seem to reveal a lot of good stuff. Your
directions was exactly what I needed so I think I'll be able to go a long way
with this!
Thanks again, and best regards
Mike
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
using macros in Outlook Roger Outlook - General Queries 1 September 17th 07 05:43 PM
How to use macros in Outlook? Roger Outlook and VBA 1 September 17th 07 04:52 PM
Outlook Macros - VB code Ted Martin Outlook and VBA 1 February 22nd 07 03:30 PM
Outlook.MAPIFolder, VBA macros lerneree Outlook - Using Forms 0 September 6th 06 10:18 AM
Recording Macros in Outlook ruthie-baby Outlook - General Queries 1 July 13th 06 04:01 PM


All times are GMT +1. The time now is 08:43 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.