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,566 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
Comment Utility
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
Comment Utility
"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
Comment Utility
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
Comment Utility
Thanks, I'll check them out tomorrow and get back to you.  
0
 
LVL 76

Expert Comment

by:David Lee
Comment Utility
You're welcome.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Set OWA language and time zone in Exchange for individuals, all users or per database.
Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
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: …

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now