A family of Microsoft word processing software products for creating web, email, and print documents.
Maybe you could use the WindowSelectionChange Application event...
See http://word.mvps.org/faqs/macrosvba/appclassevents.htm for instructions on how to set up Application Events in Word. You would then be able to type normally, but as soon as you click on a word or move the cursor with the arrow keys over a word the Thes procedure would run. Follow the instructions in the above link. Then:
in the normal module:
Option Explicit
Dim oAppClass As New ThisApplication
Public Sub AutoExec()
Set oAppClass.oApp = Word.Application
End Sub
Sub Thes()
Dim rng As Range
Set rng = Selection.Range
Application.CommandBars.ExecuteMso ("Thesaurus")
rng.Select
End Sub
in the ThisApplication class module:
Option Explicit
Public WithEvents oApp As Word.Application
Private Sub oApp_WindowSelectionChange(ByVal Sel As Selection)
Call Thes
End Sub
Cheers
Rich
PS. And you could modify the oApp_WindowSelectionChange procedure so it only calls Thes when the Thesaurus has been manually opened by you (to allow you to close it and it will stay closed) like this:
Private Sub oApp_WindowSelectionChange(ByVal Sel As Selection)
If Application.CommandBars.GetPressedMso("ResearchPane") Then Call Thes
End Sub