word question

Started by torsder, June 03, 2017, 05:46:07 AM



Word 2010 contains the directory fuction that I search the words in word. But sometimes it can't find the explanation for some words so I need to search them online.

I'm just thinking that can I just select the words in Word document, them word will auto help me to search on specific website for example: Wikipedia in browser. Is that possible? Thanks for any advice.


You can use VBA macro to do that , I find one on google, you can try to see if it works

Sub OpenBrowser(strAddress As String, Menubar As Boolean, nHeight As Long, nWidth As Long, varResizable As Boolean)
  Dim objIEBrowser As Object

  ' Create and set the object settings.
  Set objIEBrowser = CreateObject("InternetExplorer.Application")

  With objIEBrowser
    .Menubar = Menubar
    .width = nWidth
    .height = nHeight
    .resizable = varResizable
    .Navigate strAddress
    .Visible = True
  End With
End Sub

Sub SearchInWiki()
  Dim strText As String

  ' Make sure there is a text selected.
  If Selection.Type <> wdSelectionIP Then
    strText = Selection.Text
    strText = Trim(strText)
    MsgBox ("Please select text first!")
    Exit Sub
  End If

  ' Search selected in Wiki with browser window opened in set size.
  OpenBrowser "https://en.wikipedia.org/wiki/" & strText, True, 555, 655, True

End Sub

More detailes you can find here:


Hope it helps


Thanks for sharing useful information. Keep it up.

More About Our Webmaster Tools for Windows and Mac

HTML, image, video and hreflang XML sitemap generatorA1 Sitemap Generator
website analysis spider tool for technical SEOA1 Website Analyzer
SEO tools for managing keywords and keyword listsA1 Keyword Research
complete website copier toolA1 Website Download
create custom website search enginesA1 Website Search Engine
scrape data into CSV, SQL and databasesA1 Website Scraper