Solved

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

Posted on 2010-11-22
5
6,379 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Many people use more than one email account and so it becomes difficult for them to manage them when they use separate accounts,  so, in this article, I have shared an easy way to add Other Mail Accounts in your Google Inbox. It helps to combine all…
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

738 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