Double click highlighted text for more details

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to expand details by clicking a highlited text within a word document.
This will allow a brief explination and expansion if you would like more
info.
 
Hi DOC

One way to achieve exactly what you want is to use a macrobutton field that
runs a macro that displays a message box that shows the further information.

Specifically: do ctrl-F9. Within the braces that Word gives you, type
"Macrobutton DefineApple apple". Now, do Shift-F9 to display the field,
rather than the field codes.

Now, you have to create a macro called DefineApple. It should look something
like:

Sub DefineApple()
MsgBox "An apple is a round, green fruit. Some people think that apples
can be red, but I don't like red apples."
End Sub

For information on what to do with that macro, see Graham Mayor's Idiots'
Guide to Installing Macros at http://www.gmayor.com/installing_macro.htm

You'll need a separate macro for each term you want to define.

Two caveats to this:

1. Whether it will work will depend on the macro settings of your user. If
the user has macro security set to High or Very High, the user will never
get the chance to run the macro. If the user has macro security set to
Medium, then the user might decide to turn off your macros.

2. The user may have chosen to click with one click, not two. So beware of
issuing instructions to 'double-click' the name.

For other ideas to achieve similar ends, see
How to create a glossary
http://www.ShaunaKelly.com/word/glossary/glossary.html

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 

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

Back
Top