"In a previous OOoBasic Crash Course article, we learned how to
grab a current word and send it to an external application. Let's
see what else we can do with a selected word.
"For example, say you have text that contains a lot of technical
terms, and you want to link the words that need explaining to their
definitions in Wikipedia or some other online reference. Using a
simple macro, you can easily add a hyperlink to the currently
selected word. To do this, you can use the previous macro as a
starting point. In fact, it only needs a few slight
modifications..."