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.
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)
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/ (https://www.datanumen.com/blogs/3-handy-ways-search-words-online-directories-wikipedia-word/)
Hope it helps
Thanks for sharing useful information. Keep it up.