Please don't post duplicate questions. Although your question here concerns Excel, your other thread (
https://www.msofficeforums.com/word/...code-word.html) is asking essentially the same thing. The answer would be the same for any Office application. Thread closed.