That 'solution' is nothing more than a re-hash of a comment in the macro itself:
'Note: this code requires a reference to the Word object model
But References is greyed out in my VBA tools menu, can some one help please?
That will be because you haven't cleared the error. Click on Run>Reset, then set the reference.