It’s a bug in Microsoft VBA. But there is a workaround.
Use F8 to run through the macro and find where it turns it off. It’s usually after a SendKeys
.
Then add an
Sendkeys "{NUMLOCK}", True
after the line to reverse the effect.
If you can’t find it, just add it at the end and when it finishes, it will go back. Hopefully, if you add it during the show/hide process, it will work.