Keyboard shortcut to close or toggle Thesaurus/Research

M

martin gifford

Hi,
I know the keyboard shortcut to open thesaurus/research is shift + F7.
Every time I open it, I want to close it with a keyboard shortcut.
It would be great if shift + F7 was a toggle switch that opened AND closed it.
Does anyone know of a keyboard shortcut to close thesaurus/research?
The shortcut alt + shift + c is supposed to close panes but it doesn't close
thesaurus/research.
Thanks,
Martin Gifford.
 
G

Graham Mayor

Which Word version?
Word 2007:
Create the following macro to intercept the command

Sub ToolsThesaurusRR()
With CommandBars("Research")
.Visible = Not .Visible
End With
End Sub

The same command is used in Word 2003, but works in a different manner

Sub ToolsThesaurusRR()
With CommandBars("Task Pane")
.Visible = Not .Visible
End With
End Sub

http://www.gmayor.com/installing_macro.htm


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
G

Graham Mayor

Word 2003 uses shared task panes with some shared commands. It is worth
noting that the Macro may fail in Word 2003 if the task bar has not first
been displayed and you will get an error message. The following will trap
that error and stop the macro. This is only likely to be a problem if you
have used the Taskpane controller.dot add-in to disable the startup task
pane.

Sub ToolsThesaurusRR()
On Error Resume Next
With CommandBars("Task Pane")
.Visible = Not .Visible
End With
End Sub


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top