word question

  • 1 Replies
  • 354 Views
*

torsder

  • Newbie
  • *
  • 1
  • +0/-0
    • View Profile
word question
« on: June 03, 2017, 05:46:07 AM »
hello

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.

*

Jrasg

  • Newbie
  • *
  • 1
  • +0/-0
    • View Profile
Re: word question
« Reply #1 on: June 07, 2017, 03:58:15 AM »
You can use VBA macro to do that , I find one on google, you can try to see if it works

Code: [Select]
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)
  Else
    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:

https://www.datanumen.com/blogs/3-handy-ways-search-words-online-directories-wikipedia-word/

Hope it helps

 




See Our Webmaster Tools for Windows and Mac

A1 Sitemap Generator
      
A1 Website Analyzer
      
A1 Keyword Research
      
A1 Website Download
      
A1 Website Search Engine
      
A1 Website Scraper