As far as I can see that code is meant to be run from Word, not Excel.

Can you explain in simple terms what you are trying to do?

For example, what data do you want from the
Word documents and where should it go?