Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2009-05-18
5
Medium Priority
?
1,052 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
  • 3
  • 2
5 Comments
 
LVL 76

Assisted Solution

by:David Lee
David Lee earned 1200 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 1200 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
There can be many situations demanding the conversion of Outlook OST files to PST format and as such, there is no shortage of automated tools to perform this conversion. However, what makes Stellar OST to PST converter stand above the rest? Let us e…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

886 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