2 Quick Methods to Search Selected Text on Internet in Your Outlook Email

At times, when composing or reading an email in Outlook, you may want to search a specific text on Internet. In this scenario, you can use the 2 methods introduced in this post.

For instance, when you are reading a received email and confused about a special term in the body, you may want to figure it out by searching on Internet. In this case, you can use either of the following 2 means. The former is to make use of built-in “Research” feature. However, it only supports you to search on Bing. If you wish to search on other sites, like Google or Yahoo, you can use the Method 2.

Method 1: Search by Inbuilt “Research” Feature

  1. At first, open an email.
  2. If this current email is a received or sent mail, you have to firstly turn it into editable mode. Just click “Actions” and choose “Edit Message”.Edit Message
  3. Then, you can see and switch to “Review” tab.
  4. Next, select the text which you want to search on Internet.
  5. After that, click the “Research” button on “Review” tab.Research Selected Text
  6. At once, a new window of “Research” will display, in which the selected text is being searched on Bing, as shown in the following figure.Popup Research Window

By default, Outlook Research feature only supports Bing. Thus, if you would like to search text in email on other sites, such as Google or Yahoo, you can read on to get another approach.

Method 2: Search on Other Sites via Outlook VBA

  1. For a start, access VBA editor via “Alt + F11”.
  2. Then, in the new window, enable “MS Word Object Library” with reference to “How to Add an Object Library Reference in VBA“.
  3. Next, copy the following code into a module.
Sub SearchTextonInternetInEmail()
    Dim objMail As Outlook.MailItem
    Dim objMailDocument As Word.Document
    Dim objTextSelection As Word.Selection
    Dim strText As String
    Dim strURL As String
    Dim objExplorer As Outlook.Explorer
    Dim objWebBrowser As Object
 
    Set objMail = Outlook.Application.ActiveInspector.CurrentItem
    Set objMailDocument = objMail.GetInspector.WordEditor
    Set objTextSelection = objMailDocument.Application.Selection
    strText = objTextSelection
   
    'Search on Google
    strURL = "https://www.google.com/search?q=" & strText
    'Search on Yahoo, use "https://search.yahoo.com/search?p="
 
    'Open the URL inside Outlook directly
    Set objExplorer = Application.Explorers.Add(Session.GetDefaultFolder(olFolderInbox))
    With objExplorer
         .ShowPane olFolderList, False
         .ShowPane olNavigationPane, False
         .ShowPane olOutlookBar, False
         .ShowPane olToDoBar, False
         .Display
    End With
    Set objWebBrowser = objExplorer.CommandBars.FindControl(, 1740)

    objWebBrowser.Text = strURL
    objWebBrowser.Execute
End Sub

VBA Code - Search Selected Text in Email on Other Sites

  1. Subsequently, close this window and add this macro to Quick Access Toolbar of Message window, like the optional step in “How to Run VBA Code in Your Outlook“.
  2. Eventually, follow the operations below to have a try.
  • First off, open an email.
  • Then, select the text to be searched.
  • Then, click the macro button in Quick Access Toolbar.Click Macro Button
  • Immediately, a new Outlook window will show up, which is searching the text in Google, like the following screenshot.Search Selected Text on Google

Fall Back on Reliable External Repair Tool

Since Scanpst frequently fails in coping with severe Outlook file damage, it’s wise to prepare a powerful and excellent third party fix tool, like DataNumen Outlook Repair, in vicinity. In this way, even if the inbox repair tool cannot repair corrupt PST file, you still can go for the external tool to restore the valuable Outlook data.

Author Introduction:

Shirley Zhang is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including fix SQL Server and outlook repair software products. For more information visit www.datanumen.com