Weird Microsoft Word text insert problem

We have a small script that inputs text in to a microsoft word template used for label printing. This text is inserted by a third party program using the bookmarks feature in word.

Recently I came across a problem where when the program started inserting the text in to the label it would continually insert the same piece of text over and over. This caused word to crash and of course the user could not print a label.

The fix was relatively simple and should work for any instance where text is being inserted in to a word document by a third party program.

To fix the issue go to Tools > Options > Edit.  Make sure that “Typing replaces selection” is enabled in this menu.

Please note that this setting is seperate from the standard overtype function using the insert key.

Hope that someone else out there has the same weird problem as me and finds this useful!