Hi,
Quite difficult to guess what might be going wrong within your code ... without seeing it ...
From your description ... it does look much more as a Word VBA issue ... and not so much an Excel one ...
Among the possible solutions, you should have a look at following link ...
https://www.experts-exchange.com/articles/12904/Understanding-and-using-CommandBars-Part-II-Creating-your-own.html
Hope this will help