I'm not trying to run you off. I'm trying to tell you this isn't a "free" code writing service. We are here to help you find your solutions. That you should try to learn to do what you need to do with Word, just as you have with Excel.
"I couldn't get the code to work." isn't very helpful.
Can you attach a sanitized version of your document?