Solved

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

Posted on 2009-05-18
5
981 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 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Large Outlook files lead to various unwanted errors and corruption issues. Furthermore, large outlook files can also make Outlook take longer to start-up, search, navigate, and shut-down. So, In this article, i will discuss a method to make your Out…
Read this checklist to learn more about the 15 things you should never include in an email signature.
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 …
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

813 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

13 Experts available now in Live!

Get 1:1 Help Now