View Single Post
 
Old 06-23-2015, 04:45 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You can avoid partial-word matches by changing:
.MatchWholeWord = False
to:
.MatchWholeWord = True

To make the macro available to all documents, you could add it to Word's Normal template.

Word 2007 & later don't have toolbars, though you could add a button to, say, the Add-ins tab on the Ribbon. For advice on that, see: http://gregmaxey.com/word_tip_pages/...bbon_main.html
You might find it easier and just as useful to simply assign a keyboard shortcut to the macro. See: http://word.mvps.org/faqs/customizat...roToHotkey.htm

PS: When posting code, please use the code tags, which you can insert via the # button on the posting menu.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote