?
Solved

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

Posted on 2010-11-22
5
Medium Priority
?
6,874 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 2000 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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

An analysis of the phishing scam that has been affecting Google users, along with steps to take for protection, as well as what to do if you receive one of the emails.
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

801 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