Solved

Ad translate button in Outlook 2007 Menu / Add Google Translate API in Outlook

Posted on 2009-05-18
5
1,007 Views
Last Modified: 2012-05-07
Hi Guys

I have 2 questions
1.- How can i add the translation button in Outlook 2007
2.- How can i integrate the Google Translation API in Outlook 2007

Please comment
0
Comment
Question by:titorober23
[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

Assisted Solution

by:David Lee
David Lee earned 300 total points
ID: 24424068
Hi, titorober23.

1.  I can show how to add a toolbar button or, perhaps better, right-click context menu.  Which do you prefer?

2.  I thought I answered this in your previous question.  The code in that question integrates the Translation API using a rule.  What other form of integration did you have in mind?
0
 

Author Comment

by:titorober23
ID: 24432761
Yes, please show me how
0
 
LVL 76

Expert Comment

by:David Lee
ID: 24433875
Show you how to what, add a button or a right-click context menu?
0
 

Author Comment

by:titorober23
ID: 24447583
both, please
0
 
LVL 76

Accepted Solution

by:
David Lee earned 300 total points
ID: 24456068
Here's how to add a toolbar button.

1.  Click View->Toolbars->Customize
2.  Click the Toolbars tab
3.  Click New
4.  Name the toolbar
5.  Click the Commands tab
6.  Under Categories click Macros
7.  Under Commands click and hold on the macro, then drag it out and drop it on the new toolbar
8.  Dock the toolbar somewhere onscreen

The code below adds a right-click context meu.
Private Sub Application_ItemContextMenuDisplay(ByVal CommandBar As Office.CommandBar, ByVal Selection As Selection)
    Const msoControlButton = 1
    Const msoButtonIconAndCaption = 3
    Dim objButton As CommandBarButton
    Set objButton1 = CommandBar.Controls.Add(msoControlButton)
    With objButton
       .Style = msoButtonIconAndCaption
       'Enter your caption text'
       .Caption = "Hello World"
       .Parameter = Selection.Item(1).EntryID
       'List of face IDs here: http://www.kebabshopblues.co.uk/2007/01/04/visual-studio-2005-tools-for-office-commandbarbutton-faceid-property/'
       .FaceId = 355
       'Enter the macro you want to run.  Be sure to include the Project and module names.'
       .OnAction = "Project1.Module1.HelloWorld"
   End With
End Sub

Open in new window

0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Changing a few Outlook Options can help keep you organized!
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

734 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