Solved

Deploy an MS Outlook vba macro to multiple users and add a button to the standard toolbar

Posted on 2010-11-22
5
5,904 Views
Last Modified: 2012-05-10
I wrote a simple VBA macro in MS Outlook.  The macro works just fine, but now I need to distribute it to hundreds of users.  All I want to do is automatically import the bas file containing the macro vba code and create a button on the standard toolbar that runs it function.  I have yet to be able to find anything that can do this easily.  If the people receiving this code were all computer savvy I’d just have them import the macro and create the button themselves, but they’re not.  I just want to send them a file, have them double click on it and have it automatically install on their system.  

Thanks,
Dave
0
Comment
Question by:Cristal638
  • 3
  • 2
5 Comments
 
LVL 76

Expert Comment

by:David Lee
ID: 34193283
Hi, Dave.

Unfortunately there is no way to do this.  Your options are

1.  Distribute the entire VbaProject.OTM file.  This is the file that contains all Outlook macro code.  The downside to this approach is that it will overwrite any Outlook macros already on the user's computer.

2.  Re-write the solution as an add-in.  

You can add the toolbar button by adding code that creates it.
0
 
LVL 2

Author Comment

by:Cristal638
ID: 34193308
"Re-write the solution as an add-in" - How do you code an add-in?  What language?  Do you have an example?
0
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 34193349
Add-ins can be written in VB or C.  Here's an example from Microsoft (http://support.microsoft.com/kb/316983) and one from a company that specializes in Outlook development (http://www.microeye.com/resources/template.htm).
0
 
LVL 2

Author Comment

by:Cristal638
ID: 34193457
Thanks, I'll check them out tomorrow and get back to you.  
0
 
LVL 76

Expert Comment

by:David Lee
ID: 34193533
You're welcome.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Find out what you should include to make the best professional email signature for your organization.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question